main(){ long n,m; scanf("%ld%ld",&n,&m); if(n*=m){ printf("Yes\n%ld %ld\n",n,m-1); }else{ puts("No"); } }