#include int main(void){ int n,z; scanf("%d %d",&n,&z); if(n>=3){ printf("No\n"); }else if(z==1){ printf("No\n"); }else if(n==2 && z==2){ printf("No\n"); }else{ printf("Yes\n"); } return 0; }