def can_reach_zero(A, B): while True: if A == 0 and B == 0: return True # Check if both are odd and greater than zero if (A % 2 == 1) and (B % 2 == 1) and (A != 0 or B != 0): return False # Check possible operations op1_possible = False new_a1 = 0 new_b1 = 0 if A % 2 == 0 and B >= 1: op1_possible = True new_a1 = A // 2 new_b1 = B - 1 op2_possible = False new_a2 = 0 new_b2 = 0 if B % 2 == 0 and A >= 1: op2_possible = True new_a2 = A - 1 new_b2 = B // 2 if not op1_possible and not op2_possible: return False if op1_possible and op2_possible: sum1 = new_a1 + new_b1 sum2 = new_a2 + new_b2 if sum1 <= sum2: A, B = new_a1, new_b1 else: A, B = new_a2, new_b2 elif op1_possible: A, B = new_a1, new_b1 else: A, B = new_a2, new_b2 A, B = map(int, input().split()) if can_reach_zero(A, B): print("Yes") else: print("No")