module Main where

import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    [a, b, c] <- fmap read . words <$> getLine :: IO [Int]
    case () of
        _ | a == b    -> print c
          | b == c    -> print a
          | otherwise -> print b