f = open('input.txt', 'r')
l = []
for line in f:
    l.append(list(line.split()))
for i in l:
    i.reverse()
f.close()
f = open('output.txt', 'w')
for i in l:
    f.write(' '.join(i) + '\n')
f.close()

7ffe370efba5bce04b1bb4f14143db0bc93cb3a7
<mask token>

<mask token>
for line in f:
    l.append(list(line.split()))
for i in l:
    i.reverse()
f.close()
<mask token>
for i in l:
    f.write(' '.join(i) + '\n')
f.close()

f = open('input.txt', 'r')
l = []
for line in f:
    l.append(list(line.split()))
for i in l:
    i.reverse()
f.close()
f = open('output.txt', 'w')
for i in l:
    f.write(' '.join(i) + '\n')
f.close()
