S = int(input()) X = lstrip(S) if K[0] == "x": T =2**32 - X print(T) else: print(S)