# palindrome?
# aba abba - Yes
# abb aabc - No
line = input()

new_line = ''.join(reversed(line))
print(new_line) # hello then olleh


#if
#line = input()

#new_line = ','.join(reversed(line)) # split(',')
#print(new_line) # in this # hello then o,l,l,e,h
786fd5bb1e8f2b1972c4f8214e4f8402b258add5
<mask token>

<mask token>
print(new_line)

line = input()
new_line = ''.join(reversed(line))
print(new_line)

# palindrome?
# aba abba - Yes
# abb aabc - No
line = input()

new_line = ''.join(reversed(line))
print(new_line) # hello then olleh


#if
#line = input()

#new_line = ','.join(reversed(line)) # split(',')
#print(new_line) # in this # hello then o,l,l,e,h