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