#include <bits/stdc++.h>
int main() {
  int c, d;
  char a[4], b[4];
  (void)scanf("%s %s", a, b);
  strcat(a, b);
  c = atoi(a);
  d = sqrt(c);
  if (d * d == c) {
    printf("Yes");
    return 0;
  }
  printf("No");
  return 0;
}
