import java.util.*;

public class Main {
	  public static void main(String args[]){
      	Scanner scan = new Scanner(System.in);
            
        String a = scan.next();
        String b = scan.next();
        String a_b = a + b;
        
        String cnt;
        
        int num = Integer.parseInt( a_b );
        
        int num_root = (int)Math.sqrt((double)num);
        
        //System.out.println(num_root);
        
        if( num_root * num_root == num )
          cnt = "Yes";
        else
          cnt = "No";
        
        System.out.println(cnt);
	  }
} import java.util.*; util.* java public class Main {
	  public static void main(String args[]){
      	Scanner scan = new Scanner(System.in);
            
        String a = scan.next();
        String b = scan.next();
        String a_b = a + b;
        
        String cnt;
        
        int num = Integer.parseInt( a_b );
        
        int num_root = (int)Math.sqrt((double)num);
        
        //System.out.println(num_root);
        
        if( num_root * num_root == num )
          cnt = "Yes";
        else
          cnt = "No";
        
        System.out.println(cnt);
	  }
} Main public static void main(String args[]){
      	Scanner scan = new Scanner(System.in);
            
        String a = scan.next();
        String b = scan.next();
        String a_b = a + b;
        
        String cnt;
        
        int num = Integer.parseInt( a_b );
        
        int num_root = (int)Math.sqrt((double)num);
        
        //System.out.println(num_root);
        
        if( num_root * num_root == num )
          cnt = "Yes";
        else
          cnt = "No";
        
        System.out.println(cnt);
	  } main {
      	Scanner scan = new Scanner(System.in);
            
        String a = scan.next();
        String b = scan.next();
        String a_b = a + b;
        
        String cnt;
        
        int num = Integer.parseInt( a_b );
        
        int num_root = (int)Math.sqrt((double)num);
        
        //System.out.println(num_root);
        
        if( num_root * num_root == num )
          cnt = "Yes";
        else
          cnt = "No";
        
        System.out.println(cnt);
	  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String a = scan.next(); a scan.next() scan.next scan String b = scan.next(); b scan.next() scan.next scan String a_b = a + b; a_b a + b a b String cnt; cnt int num = Integer.parseInt( a_b ); num Integer.parseInt( a_b ) Integer.parseInt Integer a_b int num_root = (int)Math.sqrt((double)num); num_root (int)Math.sqrt((double)num) Math.sqrt Math (double)num if( num_root * num_root == num )
          cnt = "Yes";
        else
          cnt = "No"; num_root * num_root == num num_root * num_root num_root num_root num cnt = "Yes" cnt "Yes" cnt = "No" cnt "No" System.out.println(cnt) System.out.println System.out System System.out cnt String args[] args public class Main {
	  public static void main(String args[]){
      	Scanner scan = new Scanner(System.in);
            
        String a = scan.next();
        String b = scan.next();
        String a_b = a + b;
        
        String cnt;
        
        int num = Integer.parseInt( a_b );
        
        int num_root = (int)Math.sqrt((double)num);
        
        //System.out.println(num_root);
        
        if( num_root * num_root == num )
          cnt = "Yes";
        else
          cnt = "No";
        
        System.out.println(cnt);
	  }
} public class Main {
	  public static void main(String args[]){
      	Scanner scan = new Scanner(System.in);
            
        String a = scan.next();
        String b = scan.next();
        String a_b = a + b;
        
        String cnt;
        
        int num = Integer.parseInt( a_b );
        
        int num_root = (int)Math.sqrt((double)num);
        
        //System.out.println(num_root);
        
        if( num_root * num_root == num )
          cnt = "Yes";
        else
          cnt = "No";
        
        System.out.println(cnt);
	  }
} Main
import java.util.*;

public class Main {
	  public static void main(String args[]){
      	Scanner scan = new Scanner(System.in);
            
        String a = scan.next();
        String b = scan.next();
        String a_b = a + b;
        
        String cnt;
        
        int num = Integer.parseInt( a_b );
        
        int num_root = (int)Math.sqrt((double)num);
        
        //System.out.println(num_root);
        
        if( num_root * num_root == num )
          cnt = "Yes";
        else
          cnt = "No";
        
        System.out.println(cnt);
	  }
}