import strutils let a, b = parseBinInt readLine stdin echo a xor b