#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, ans;
  cin >> a >> b;
  int cnt = 1;
  c = b;
  while (c >= 10) {
    c = c / 10;
    cnt++;
  }
  for (int i = 1; i <= cnt; i++) {
    a = a * 10;
  }
  d = a + b;
  for (int j = 1; j <= d; j++) {
    if (j * j == d) ans++;
  }
  if (ans == 1)
    cout << "NO";
  else
    cout << "Yes";
  return 0;
}
