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