a = io.read() if a:sub(1, 1) == "x" then a = tonumber(a:sub(2, #a)) print(4294967296 - a) else print(a) end