hh = input()
hh = hh.split()
g = []
for i in hh:
    g.append(i[::-1])
print(*g, sep=' ')

cd8e6176b793889979228ff16a621f5dbee6439c
<mask token>

<mask token>
for i in hh:
    g.append(i[::-1])
print(*g, sep=' ')

hh = input()
hh = hh.split()
g = []
for i in hh:
    g.append(i[::-1])
print(*g, sep=' ')
