a = int(input(), 2) b = int(input(), 2) assert 0 <= a <= 1 << 30 assert 0 <= b <= 1 << 30 print(a ^ b)