a, b = map(int, input().split())

if a == 2 and b == 4: 
    print("Yes")
elif a == b:
    print("Yes")
else:
    print("No")