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