a=input()
b=list(a)
d=b[::-1]
if d[0]=="0":
del d[0] if d[-1]=="-": del d[-1] d.insert(0,"-")
c="".join(d)
print(c)