n,m=map(int,input().split()) print(["No","Yes"][n==1 or n-1