f = open("data2.txt", 'w')
for i in xrange(10):
  print >>f, i
f.close()

