#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[8], b[4];
  scanf("%s%s", a, b);
  float num = atof(strcat(a, b));
  sqrt(num) * sqrt(num) == num ? puts("Yes") : puts("No");
  return 0;
}
