#import <stdio.h>
#import <stdlib.h>
#import <math.h>
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;
}
