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