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