fout=open("test.txt","wt")
for i in range(1, 5):
s="=>("
c="111,"
d=i+1
f=","
g=12
h=")"
print >>fout,i,s,c,d,f,g,h
print i,s,c,d,f,g,h
fout.close()
s = '=>('
c = '111,'
f = ','
g = 12
h = ')'
fin = open('test.txt', 'w')
for i in range(1, 5):
d = i+1
print >> fin, i, s, c, d, f, g, h
fin.close()