A, B = map(int, input().split()) if A ^ B == B - A: print("Yes") else: print("No")