S = input() s = '' r = len(S) for i in S: s[r-1] = i r -= 1 print(s)