#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INF = 1e9 + 10;
const ll INFL = 4e18;

int main() {
    ll N, M;
    cin >> N >> M;

    if (N == 0 || M == 0) {
        puts("No");
        return 0;
    }

    puts("Yes");
    cout << N * M << ' ' << M - 1 << endl;
}