import time
s = "a" * 10000
f = open("test.txt", "a")
for i in range(10):
    time.sleep(1)
    print(1)
    f.write("{}\n".format(s))
    f.flush()
f.close()
