main :: IO () main = interact $ show . (\[x, y] -> if x < y then 0 else 2 ^ (x - y)) . map read . words