a, b = map(int, input().split()) if a == 2 and b == 4: print('Yes') else: if a != b: print('No') else: print('Yes')