S = input() if S[0] == 'x': 2**32 - int(S[1:]) else: print(S)