import java.util.Scanner;

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

public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		   
		    String a = scanner.next();
		    String b = scanner.next();
		    int c = Integer.parseInt(a + b);
		    
		    if( (int)Math.sqrt(c) * (int)Math.sqrt(c) == c ) 
		    {
		    	System.out.println("Yes");
		    }
		    else 
		    {
		    	System.out.println("No");
		    }
		    
		    scanner.close(); }
		  }