fun main(){println(readLine()!!.split(" ").map{it.toInt()}.reduce{acc,e->acc xor e})}