import sequtils,strutils var A, C : int64 (A, C) = stdin.readline.split.map(parseBiggestInt) echo(A xor C)