#include<iostream>
using namespace std; 
 
 
int main()
{
string a,b;
cin >> a >> b;
double x = stoi(a+b);
int y = floor(double sqrt(double x)))^2


if (y = x){printf("Yes");}
else {printf("No");}
 
return 0;
}