import Control.Applicative main = do n <- read<$>getLine :: IO Integer m <- read<$>getLine :: IO Integer let ans = 2^(n-3) * m print ans