calc :: Integer -> Integer calc n = 316 + (n - 1) * 52 main :: IO () main = print . calc =<< readLn