#include <bits/stdc++.h>
using namespace std;

int main() {
  int A,B;
  cin >> A >> B;
  if(B < 10){
    int C = A * 10 + B;
  }
  
  if(B < 100){
    int C = A * 100 + B;
  }
  
  if(B == 100){
    int C = A * 1000 + B;
  }
    cin >> C;
  for(int i = 0;i < 4000;i++){
    if(i * i == C){
      cout << "Yes" << endl;
    break;
    }
    if(i == 4000){
      cout << "No" << endl;
    }
  }
}
