module Main where

main = do
    n <- getLine
    let [x, y, z] = map read $ words n :: [Int]
    let f [x, y, z] = if x == y
        then z
        else if x == z
        then y
        else x
    putStrLn $ show $ f [x, y, z]

