#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  while (cin >> a >> b) {
    int x, flag = 0;
    if (b >= 10) {
      x = a * 100 + b;
    } else {
      x = a * 1000 + b;
    }
    if (sqrt(x) == (int)sqrt(x))
      cout << "Yes";
    else
      cout << "No";
  }
}
