o=open('o','a+') o.seek(0) print o.read() o.truncate(0) while 1:print>>o,raw_input()