#include using namespace std; int main(){ long long n,m; cin >> n >> m; if (n==0 || m==0){ cout << "No" << endl; }else{ cout << "Yes" << endl; cout << n*m << " " << m-1 << endl; } }