#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b;
  int c, d;
  cin >> a >> b;
  d = sqrt(a * c + b);
  if (b < 10)
    c = 10;
  else if (b < 100)
    c = 100;
  else
    c = 1000;
  if (d * d == a * c + b)
    printf("Yes");
  else
    printf("No");
}
