s = int(input()) if s<2**31: print(s) else: print("x"+str(2**32-s))