#include <bits/stdc++.h>
int main(void) {
  int a, b;
  scanf("%d %d", &a, &b);
  int sum;
  if (1 <= b && b <= 9) {
    sum = a * 10 + b;
  } else if (10 <= b && b <= 99) {
    sum = a * 100 + b;
  } else {
    sum = a * 1000 + 100;
  }
  int mark = 0;
  for (int i = 4; i <= 317; i++) {
    if (sum == i * i) {
      mark = 1;
      break;
    }
  }
  if (mark == 1) {
    printf("Yes");
  } else {
    printf("No");
  }
  return 0;
}
