import math, strutils const v = 2 ^ 32 let s = readLine stdin if s[0] == 'x': echo -1 * s[1 ..^ 1].parseInt.pred v else: echo s