You are given a string S of length 2 or 3 consisting of lowercase English letters. If the length of the string is 2, print it as is; if the length is 3, print the string after reversing it.
s = input()
print(s if len(s)==2 else reversed(s))
s = input()
print(s if len(s)==2 else s[::-1])
