b;main(a){scanf("%d%d",&a,&b);b=!puts(a<2|b<2&&a*b>2||a*b&1?"NO":"YES");}