import Foundation

let line = readLine()!
let comps = line.componentsSeparatedByString(" ")
var dic = [String:Int]()
comps.forEach({ dic[$0] = (dic[$0] ?? 0) + 1 })
print(dic.filter({ $0.1 == 1 }).first!.0)