#include <bits/stdc++.h>
int sqr[120];
void sq() {
  for (int i = 1; i <= 110; i++) {
    sqr[i] = i * i;
  }
}
int main() {
  sq();
  char num[10];
  scanf("%[^\n]%*c", &num);
  int lon = strlen(num);
  int pot = 1, n = 0;
  for (int i = lon - 1; i >= 0; i--) {
    if (num[i] != ' ') {
      n += ((num[i] - 48) * pot);
      pot *= 10;
    }
  }
  bool flag = true;
  pot = 1;
  while (sqr[pot] < n) pot++;
  if (sqr[pot] == n)
    printf("Yes\n");
  else
    printf("No\n");
}
