#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  if (b < 10) {
    int x = 10 * a + b;
    int i = 1;
    while (i * i <= x) {
      if (x == i * i) {
        cout << "Yes" << endl;
        return 23;
      } else {
        i++;
      }
    }
    cout << "No" << endl;
  } else if (b == 100) {
    int x = 1000 * a + b;
    int i = 1;
    while (i * i <= x) {
      if (x == i * i) {
        cout << "Yes" << endl;
        return 39;
      } else {
        i++;
      }
    }
    cout << "No" << endl;
  } else if (10 <= b && b < 100) {
    int x = 100 * a + b;
    int i = 1;
    while (i * i <= x) {
      if (x == i * i) {
        cout << "Yes" << endl;
        return 58;
      } else {
        i++;
      }
    }
    cout << "No" << endl;
  }
}
