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