#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c;
    cin>>a>>b;
    c=a*pow(10,(int)log10(b)+1)+b;
    for(int i=1;i<=c;i++)
    if(i*i==c) {cout<<"Yes";return 0;}
    cout<<"No";
    return 0;
}