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