#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b, c;
  cin >> a >> b;
  c = a + b;
  int d = atoi(c.c_str());
  for (int i = 1; i < d; i++) {
    if (d / i == i) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}
