s = str(input())
# 断言:不能加括号
assert len(s)<=1000,'字符串长度不得超过1000'
assert s.islower(),'字符串需小写'
print(s[::-1])