import Data.List solve = head . (\\) [1..10] main = map read . words <$> getLine >>= print . solve