#include <bits/stdc++.h>
int main(void) {
  int a, b;
  scanf("%d %d", &a, &b);
  if (b < 10) {
    a = 10 * a + b;
  } else if (10 <= b && b < 100) {
    a = 100 * a + b;
  } else {
    a = 1000 * a + b;
  }
  b = sqrt(a);
  if (b * b == a) {
    printf("yes");
  } else {
    printf("No");
  }
  return 0;
}
