#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int a, b, c, d, e;
  cin >> a >> b;
  if (b < 10) {
    d = b + a * 10;
  } else if (b > 9 && b < 100) {
    d = b + a * 100;
  } else
    d = b + a * 1000;
  cout << d << endl;
  for (int i = 1; i < 1000; i++) {
    e = d / i;
    if (d % i == 0 && i == e) {
      cout << "Yes";
      break;
    } else if (i == 999) {
      cout << "No";
    }
  }
  cout << endl;
}
