module Main where
main = interact $ printer . solver . parser
int = read :: String -> Int

printer = unlines . (:[]) . show
parser = map int . words

solver [a,b,c]
  | a==b = c
  | b==c = a
  | c==a = b
