import Control.Applicative
import Control.Monad
import Data.List
import Data.Array
import Data.Char

main = do
  [a, b, c] <- map (read::String -> Int) . words <$> getLine
  print $ if a == b then c else if b == c then a else b
