n = str(input()) x = n[::-1] y = int(x.replace("-","")) if n[0]=="-": print("-%d" % y) else: print(x)