A, B = [int(input().strip(), 2) for _ in range(2)] print(A ^ B)