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