int a,b; main(){scanf("%d%d",&a,&b); if(a==2||a==4||a==b)printf("Yes\n"); else printf("No\n");}