#include #include using mint = atcoder::static_modint<998244353>; //using mint = atcoder::static_modint<1000000007>; using namespace std; using namespace atcoder; using ld = long double; using ll = long long; #define mp(a,b) make_pair(a,b) #define rep(i,s,n) for(int i=s; i dx{1,0,-1,0},dy{0,1,0,-1}; int main(){ ll n,m; cin >> n >> m; ll a=n*m,b=m-1; if(a!=0){ cout << "Yes\n"; cout << a << " " << b; } else cout << "No"; }