import Control.Applicative main :: IO () main = do n <- read <$> getLine :: IO Integer print $ 52 * n + 264