#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); long long N,M; cin >> N >> M; if(N == 0 || M == 0) cout << "No\n"; else{ cout << "Yes\n"; cout << N*M << " " << M-1 << endl; } }