#include using namespace std; using ll = long long; int main() { ll N, M; cin >> N >> M; bool ans = true; ll MN = M * N; ll M_1 = M - 1; if (N == 0 || M == 0) ans = false; if (ans) { cout << "Yes" << endl; cout << MN << " " << M_1 << endl; } else { cout << "No" << endl; } }