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