#include <bits/stdc++.h>
using namespace std;
const int sq_max = 316;
int main(void) {
  int product;
  int a, b;
  cin >> a >> b;
  if (b < 10) product = a * 10 + b;
  if (b == 100)
    product = a * 1000 + b;
  else
    product = a * 100 + b;
  if (product > sq_max * sq_max) {
    cout << "No";
  } else {
    for (int i = 1; i <= sq_max; i++) {
      if (((product / i) == i)) {
        cout << "Yes";
        return 0;
      }
    }
    cout << "No";
  }
  return 0;
}
