import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        String a = scanner.next();
        String  b = scanner.next();
        scanner.close();
        int c = Integer.parseInt(a+b);
        
        int i = 2;
        boolean heiho = false;
        while (i*i<=c){
         
            if(c == i*i){
                heiho = true;
                System.out.println("Yes");
            }   
            i++;
        
        }
            if(heiho == false){    
                 System.out.println("No");
            }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        String a = scanner.next();
        String  b = scanner.next();
        scanner.close();
        int c = Integer.parseInt(a+b);
        
        int i = 2;
        boolean heiho = false;
        while (i*i<=c){
         
            if(c == i*i){
                heiho = true;
                System.out.println("Yes");
            }   
            i++;
        
        }
            if(heiho == false){    
                 System.out.println("No");
            }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        String a = scanner.next();
        String  b = scanner.next();
        scanner.close();
        int c = Integer.parseInt(a+b);
        
        int i = 2;
        boolean heiho = false;
        while (i*i<=c){
         
            if(c == i*i){
                heiho = true;
                System.out.println("Yes");
            }   
            i++;
        
        }
            if(heiho == false){    
                 System.out.println("No");
            }
    } main {
        Scanner scanner = new Scanner(System.in);
        String a = scanner.next();
        String  b = scanner.next();
        scanner.close();
        int c = Integer.parseInt(a+b);
        
        int i = 2;
        boolean heiho = false;
        while (i*i<=c){
         
            if(c == i*i){
                heiho = true;
                System.out.println("Yes");
            }   
            i++;
        
        }
            if(heiho == false){    
                 System.out.println("No");
            }
    } 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 scanner.close() scanner.close scanner int c = Integer.parseInt(a+b); c Integer.parseInt(a+b) Integer.parseInt Integer a+b a b int i = 2; i 2 boolean heiho = false; heiho false while (i*i<=c){
         
            if(c == i*i){
                heiho = true;
                System.out.println("Yes");
            }   
            i++;
        
        } i*i<=c i*i i i c {
         
            if(c == i*i){
                heiho = true;
                System.out.println("Yes");
            }   
            i++;
        
        } if(c == i*i){
                heiho = true;
                System.out.println("Yes");
            } c == i*i c i*i i i {
                heiho = true;
                System.out.println("Yes");
            } heiho = true heiho true System.out.println("Yes") System.out.println System.out System System.out "Yes" i++ i if(heiho == false){    
                 System.out.println("No");
            } heiho == false heiho false {    
                 System.out.println("No");
            } System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        String a = scanner.next();
        String  b = scanner.next();
        scanner.close();
        int c = Integer.parseInt(a+b);
        
        int i = 2;
        boolean heiho = false;
        while (i*i<=c){
         
            if(c == i*i){
                heiho = true;
                System.out.println("Yes");
            }   
            i++;
        
        }
            if(heiho == false){    
                 System.out.println("No");
            }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        String a = scanner.next();
        String  b = scanner.next();
        scanner.close();
        int c = Integer.parseInt(a+b);
        
        int i = 2;
        boolean heiho = false;
        while (i*i<=c){
         
            if(c == i*i){
                heiho = true;
                System.out.println("Yes");
            }   
            i++;
        
        }
            if(heiho == false){    
                 System.out.println("No");
            }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        String a = scanner.next();
        String  b = scanner.next();
        scanner.close();
        int c = Integer.parseInt(a+b);
        
        int i = 2;
        boolean heiho = false;
        while (i*i<=c){
         
            if(c == i*i){
                heiho = true;
                System.out.println("Yes");
            }   
            i++;
        
        }
            if(heiho == false){    
                 System.out.println("No");
            }
    }
}