A = input() B = input() print(int(A, 2) ^ int(B, 2))