import Control.Applicative f xs = 55 - sum xs main = do s <- (map read . words) <$> getLine print . show $ f s