#12101: 分享一下python不用經過迴圈的做法


lessonone (我好弱)


import sys
for s in sys.stdin:
    res = ""
    s = s.replace("\r\n","")
    print(int(s[::-1]))