object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val a, b, c = sc.nextInt()
  if (a == b) {
    println(c)
  } else if (a == c) {
    println(b)
  } else {
    println(a)
  }
}
