s=input() if s[0]=="x": n=int(s[1:]) else: n=int(s) print(n);exit() m=2**32 print(m-n)