#include <bits/stdc++.h>
using namespace std;
int vis[100100];
int main() {
  memset(vis, 0, sizeof(vis));
  int a, b;
  int ans, sum = 0;
  scanf("%d %d", &a, &b);
  if (b < 10)
    ans = 1;
  else if (b < 100)
    ans = 2;
  else
    ans = 3;
  if (ans == 1) {
    sum = a * 10 + b;
  } else if (ans == 2) {
    sum = a * 100 + b;
  } else
    sum = a * 1000 + b;
  bool flag = false;
  for (int i = 1; i <= 100; i++) {
    if (i * i == sum) {
      flag = true;
      break;
    }
  }
  if (flag)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
