N=int(input()) if N>0: list1=list(str(N)) a=list1[::-1] while a[0]==0: a=a.pop[0] print("".join(a)) elif N==0: print(0) else: N=0-N list2=list(str(N)) b=list2[::-1] while b[0]==0: b=b.pop[0] b=''.join(b) b=0-int(b) print(b)