#include <bits/stdc++.h>
int main() {
  int a;
  int b;
  do {
    scanf("%d", &a);
    scanf("%d", &b);
  } while (a < 1 || b < 1 || 100 < a || 100 < b);
  int c;
  if (b < 10) {
    c = 10 * a + b;
  } else if (b <= 99) {
    c = 100 * a + b;
  } else {
    c = 1000 * a + b;
  }
  int i = 1;
  while (i <= 100100) {
    if (c == i * i) {
      printf("Yes");
      exit(0);
    }
    i++;
  }
}
