#include <bits/stdc++.h>
int int_sqrt(int n) {
  int i;
  for (i = n / 2; i > 0; i--) {
    if (i * i == n) {
      return 0;
    }
  }
}
int main(void) {
  int a, b, c;
  scanf("%d %d", &a, &b);
  c = b;
  while (c) {
    c /= 10;
    a *= 10;
  };
  int_sqrt(a + b) ? printf("no\n") : printf("yes\n");
  return 0;
}
