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