#include <stdio.h>

int main(void){

  int a, b, c, i,  i_square;
  
  if( scanf("%d%d", &a, &b) == 1);

  if(a < b){
    c =  100  * a + b;
  } else if(a == b){
    c =  1000 * a + b;
  } else {
    c =  10   * a + b;
  }
  
  for(i=2;i<=100000000000000000;i++){

    i_square = i * i;

    //printf("%d\n", i_square);
    
    if(i_square == c){
      printf("Yes\n");
      break;
    } else if(i_square == 1000000000000000000000000000000000){
      printf("No\n");
    } 
    
  }
  
