#import <stdio.h>
#import <stdlib.h>


double sqrt(double x) {
    double         xHalf = 0.5 * x;
    long long int  tmp   = 0x5FE6EB50C7B537AAl - ( *(long long int*)&x >> 1);//initial guess
    double         xRes  = * (double*)&tmp;
    
    xRes *= ( 1.5 - ( xHalf * xRes * xRes ) );
    xRes *= ( 1.5 - ( xHalf * xRes * xRes ) );
    xRes *= ( 1.5 - ( xHalf * xRes * xRes ) );
    xRes *= ( 1.5 - ( xHalf * xRes * xRes ) );
    return xRes * x;
}

int main(){
    int a,b;
    char h[10] = {'\0'};
    scanf("%d %d",&a,&b);
    sprintf(h,"%d%d",a,b);
    int n = atoi(h);
    int r = (int)sqrt((double)n);
    printf(n==r*r ? "Yes":"No");
    return 0;
}
