str = raw_input().decode("utf-8") print str[::-1].encode("utf-8")