import Control.Monad
import Data.Maybe
import qualified Data.ByteString.Char8 as BS

readInt = fst . fromJust . BS.readInteger
getInt = readInt <$> BS.getLine
readIntList = map readInt . BS.words
--getIntList = readIntList <$> BS.getLine
-- getIntMatrix = map readIntList . BS.lines <$> BS.getContents
main = do
    arg <- getIntList
    print (solve argList)


solve :: Integer -> Integer
solve arg = 30th + 24
    where 30th arg - 1 