#include #include #include using namespace std; typedef long long ll; #define rep(i,a,n) for(int i=(a);i<(n);i++) int N, M; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); cin >> N >> M; int m = M-1; //N*M = n //N*(m+1) = n if(m+1==0||N==0) cout << "No" << endl; else { cout << "Yes" << endl; cout << (long)N*(m+1) << " " << m << endl; } }