#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>

void main(){
  char a[4];
  char b[4];
  char *c;
  int num;
  int d;
  scanf("%s",a);
  scanf("%s",b);
  c = strcat(a,b);
  num = atoi(c);

  d = (int)sqrt((double)num);
  if(d*d == num){
    printf("Yes");
  }else{
    printf("No");
  }
}