#include <bits/stdc++.h>
using namespace std;
long long a[100];
int b[120];
int main() {
  int a, b;
  while (~scanf("%d %d", &a, &b)) {
    int k = 1;
    int e = b;
    while (b > 10) {
      b = b / 10;
      k++;
    }
    int c = 1;
    for (int i = 0; i < k; i++) c = c * 10;
    int d = a * c + e;
    int flag = 0;
    for (int i = 1; i < 110; i++) {
      if (d == i * i) {
        flag = 1;
        break;
      }
    }
    if (flag)
      printf("Yes\n");
    else
      printf("No\n");
  }
}
