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

#define pb push_back
#define lob lower_bound
#define upb upper_bound
#define ff first
#define ss second
#define beg begin()
#define en end()
#define rbeg rbegin()
#define ren rend()
#define sz size()
#define mem(a,b) memset(a,b,sizeof a)
#define mem0(a) memset(a,0,sizeof a)
#define mem1(a) memset(a,1,sizeof a)
#define memm(a) memset(a,-1,sizeof a)


typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
//~ const int tam=1000;
const int inf=(int)1e9;

bool square(int x){
	int res=sqrt(x);
	if(res*res==x){
		return true;
	}
	++res;
	if(res*res==x){
		return true;
	}
	
	return false;
	
}


int main(){
	ios::sync_with_stdio(false);
	string a,b;
	cin>>a>>b;
	auto val=a+b;
	int res = stoi(val);
	
	if(square(res)){
		cout<<"Yes";
	}else cout<<"No";
	cout<<endl;
	
	return 0;
}
