fun main(args:Array){ val (a,b) = readLine()!!.split(" ").map{ it.toInt() } println(a xor b) }