n = 511 + 1 #n = 32768 + 1 fd = open("input3.txt","w") for i in range(n): fd.write("@") fd.write("quit") fd.close() print "terminado"