#include<cmath>
#include<cstdio>

int P[4]={1,10,100,1000};

int main()
{
    int a,b;
    scanf("%d%d",&a,&b);
    int c=a*P[int(log10(b))+1]+b;
    if(sqrt(c)==int(sqrt(c))) printf("Yes");
    else printf("No");
}
