#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); ll a, b; cin >> a >> b; if(a == 0 || b == 0){ cout << "No\n"; return 0; } cout << "Yes\n" << a * b << ' ' << b - 1 << '\n'; }