import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan =new Scanner(System.in);
        String a = scan.next();
        String b = scan.next();
        
        int c = Integer.parseInt(a + b);
        for(int i = 0; i <1000;i++){
            if ((i*i) == c){
                System.out.println("Yes");
                return;
            }
            
        }
        
        System.out.println("No");
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan =new Scanner(System.in);
        String a = scan.next();
        String b = scan.next();
        
        int c = Integer.parseInt(a + b);
        for(int i = 0; i <1000;i++){
            if ((i*i) == c){
                System.out.println("Yes");
                return;
            }
            
        }
        
        System.out.println("No");
        
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan =new Scanner(System.in);
        String a = scan.next();
        String b = scan.next();
        
        int c = Integer.parseInt(a + b);
        for(int i = 0; i <1000;i++){
            if ((i*i) == c){
                System.out.println("Yes");
                return;
            }
            
        }
        
        System.out.println("No");
        
    } main {
        // Your code here!
        Scanner scan =new Scanner(System.in);
        String a = scan.next();
        String b = scan.next();
        
        int c = Integer.parseInt(a + b);
        for(int i = 0; i <1000;i++){
            if ((i*i) == c){
                System.out.println("Yes");
                return;
            }
            
        }
        
        System.out.println("No");
        
    } 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 int c = Integer.parseInt(a + b); c Integer.parseInt(a + b) Integer.parseInt Integer a + b a b for(int i = 0; i <1000;i++){
            if ((i*i) == c){
                System.out.println("Yes");
                return;
            }
            
        } int i = 0; int i = 0; i 0 i <1000 i 1000 i++ i++ i {
            if ((i*i) == c){
                System.out.println("Yes");
                return;
            }
            
        } {
            if ((i*i) == c){
                System.out.println("Yes");
                return;
            }
            
        } if ((i*i) == c){
                System.out.println("Yes");
                return;
            } (i*i) == c (i*i) i i c {
                System.out.println("Yes");
                return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; 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 {
        // Your code here!
        Scanner scan =new Scanner(System.in);
        String a = scan.next();
        String b = scan.next();
        
        int c = Integer.parseInt(a + b);
        for(int i = 0; i <1000;i++){
            if ((i*i) == c){
                System.out.println("Yes");
                return;
            }
            
        }
        
        System.out.println("No");
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan =new Scanner(System.in);
        String a = scan.next();
        String b = scan.next();
        
        int c = Integer.parseInt(a + b);
        for(int i = 0; i <1000;i++){
            if ((i*i) == c){
                System.out.println("Yes");
                return;
            }
            
        }
        
        System.out.println("No");
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan =new Scanner(System.in);
        String a = scan.next();
        String b = scan.next();
        
        int c = Integer.parseInt(a + b);
        for(int i = 0; i <1000;i++){
            if ((i*i) == c){
                System.out.println("Yes");
                return;
            }
            
        }
        
        System.out.println("No");
        
    }
}
