#include <bits/stdc++.h>
int main() {
  char a[4];
  char b[4];
  char *c;
  int num;
  int d;
  scanf("%s", a);
  scanf("%s", b);
  c = strcat(a, b);
  num = atoi(c);
  d = (int)sqrt((double)num);
  if (d * d == num) {
    printf("Yes");
  } else {
    printf("No");
  }
  return 0;
}
