
import Control.Applicative
import Data.List
import Data.Char

getInt :: IO Int
getInt = (\a -> read a :: Int) <$> getLine

getIntArray :: IO [Int]
getIntArray = ((map (\a -> read a :: Int)) . words) <$> getLine

getStrArray :: Int -> IO [String]
getStrArray 0 = return [] :: IO [String]
getStrArray n = (:) <$> getLine <*> (getStrArray (n - 1))

isGood :: String -> String
isGood [a, b, c, d] 
    | a == b && b == c = "Yes"
    | b == c && c == d = "Yes"
    | otherwise = "No"

main = do
    print =<< (\a -> 24 + (24 - a)) <$> getInt
