def f(slv):
newslv=''
for i in range(len(slv)-1,-1,-1):
newslv+=slv[i]
return newslv
print(f('tima'))
slova='tima depresivnuy huy'
slova1=slova.split()
for slovo in slova1:
print(f(slovo),end=' ')
ZGVmIGYoc2x2KToKICAgIG5ld3Nsdj0nJwogICAgZm9yIGkgaW4gcmFuZ2UobGVuKHNsdiktMSwtMSwtMSk6CiAgICAgICAgbmV3c2x2Kz1zbHZbaV0KICAgIHJldHVybiBuZXdzbHYKcHJpbnQoZigndGltYScpKQpzbG92YT0ndGltYSBkZXByZXNpdm51eSBodXknCnNsb3ZhMT1zbG92YS5zcGxpdCgpCmZvciBzbG92byBpbiBzbG92YTE6CiAgICBwcmludChmKHNsb3ZvKSxlbmQ9JyAnKQ==