#include <bits/stdc++.h>
int main() {
  int n, m;
  scanf("%d%d", &n, &m);
  while (n < m) n *= 10;
  if (sqrt(n + m) * sqrt(n + m) == (n + m))
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
