print (xs[0])
for x in (xs[1..n])
 print (", " + x)
では間違い?