ls = input() t1 = pow(2, 31) t2 = pow(2, 32) if ls[0]=="x": print(t2-int(ls[1:])) else: print(ls)