n=str(input("")) m=n[::-1] if n[0]!="-": print(int(m)) elif n[0]=="-": print("-",end="") print(int(m[:-1]))