#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  if (b < 10) {
    a *= 10;
  } else if (b < 100) {
    a *= 100;
  } else {
    a *= 1000;
  }
  int c = a + b;
  if (sqrt(c) - (int)sqrt(c) == 0) {
    cout << "Yes\n";
  } else {
    cout << "No\n";
  }
}
