A, B = sorted(list(map(int, input().split()))) if (A == 2 and B == 4) or A == B: print("Yes") else: print("No")