#include <bits/stdc++.h>
int main() {
  int a, b, c;
  scanf("%d %d", &a, &b);
  if (b >= 1 && b <= 9)
    c = 10 * a + b;
  else if (b >= 10 && b <= 99)
    c = 100 * a + b;
  else if (b = 100)
    c = 1000 * a + 100;
  int i;
  for (i = 1; i <= 1100; i++) {
    if (c == i * i) {
      printf("Yes");
      goto YES;
    };
  };
  printf("No");
YES:;
}
