import Control.Applicative ((<$>), (<*>)) main :: IO () main = do solve <$> getLine <*> getLine <*> getLine >>= putStrLn solve :: String -> String -> String -> String solve s1 s2 s3 = if s1 == s2 || s1 == s3 then s1 else s2