#include <bits/stdc++.h>
int main(void) {
  int a, b, i, ans, flag;
  flag = 0;
  ans = 0;
  scanf("%d", &a);
  scanf("%d", &b);
  if (10 > b) {
    ans = a * 10 + b;
  } else if (100 > b) {
    ans = a * 100 + b;
  } else if (100 == b) {
    ans = a * 1000 + b;
  }
  for (i = 0; i <= 100100; i++) {
    if (i * i == ans) {
      flag = 1;
    }
  }
  if (flag == 1) {
    printf("yes\n");
  } else {
    printf("no");
  }
}
