with open("1.txt") as f:
while True:
line=f.readline()
if not line:
break;
print(line.rstrip())
with open("1.txt") as f:
while True:
line=f.readline()
if not line:
break;
print(line.rstrip())