coding = utf-8

if name == 'main':
a = raw_input()
end = len(a)
s=''
while end > 0:
# print a[end-1]
s=s+a[end-1]
end = end-1
print s