strs = readlines() A,B = parse(Int,split(strs[1])) println(xor(A,B))