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