#include <bits/stdc++.h>
int main(void) {
  int a, b;
  scanf("%d%d", &a, &b);
  int n = 0;
  int e = b;
  while (e != 0) {
    e = e / 10;
    ++n;
  }
  int c = a * pow(10, n) + b;
  int d = sqrt(c);
  if (c == pow(d, 2))
    printf("Yes");
  else
    printf("No");
}
