#include <stdio.h>
#include <math.h>
double a,b,c;
int main(){
scanf("%lf,%lf",&a,&b);
c=(double)(int)log10(b)+1;
c=a*pow(10,c)+b;
if(double(sqrt(c),2)==c){
printf("Yes");
}else{
printf("No");
return 0;
}