#include <bits/stdc++.h>
using namespace std;
int main(){
  int N, M;
  cin >> N >> M;
  if (M == 0){
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
    cout << (long long) N * M << ' ' << M - 1 << endl;
  }
}