import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        // Your code here!
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        String str = String.valueOf(a) + String.valueOf(b);
        
        int num = Integer.parseInt(str);
        
        // double result = Math.sqrt((double)num);
        // System.out.print(result);
        
        for(int i = 1; i<= 1000;i++){
            if(num == i * i){
                System.out.print("Yes");
                return;
            }
        }
        
        System.out.println("No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        // Your code here!
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        String str = String.valueOf(a) + String.valueOf(b);
        
        int num = Integer.parseInt(str);
        
        // double result = Math.sqrt((double)num);
        // System.out.print(result);
        
        for(int i = 1; i<= 1000;i++){
            if(num == i * i){
                System.out.print("Yes");
                return;
            }
        }
        
        System.out.println("No");
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        // Your code here!
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        String str = String.valueOf(a) + String.valueOf(b);
        
        int num = Integer.parseInt(str);
        
        // double result = Math.sqrt((double)num);
        // System.out.print(result);
        
        for(int i = 1; i<= 1000;i++){
            if(num == i * i){
                System.out.print("Yes");
                return;
            }
        }
        
        System.out.println("No");
    } main {
        Scanner sc = new Scanner(System.in);
        // Your code here!
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        String str = String.valueOf(a) + String.valueOf(b);
        
        int num = Integer.parseInt(str);
        
        // double result = Math.sqrt((double)num);
        // System.out.print(result);
        
        for(int i = 1; i<= 1000;i++){
            if(num == i * i){
                System.out.print("Yes");
                return;
            }
        }
        
        System.out.println("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc String str = String.valueOf(a) + String.valueOf(b); str String.valueOf(a) + String.valueOf(b) String.valueOf(a) String.valueOf String a String.valueOf(b) String.valueOf String b int num = Integer.parseInt(str); num Integer.parseInt(str) Integer.parseInt Integer str for(int i = 1; i<= 1000;i++){
            if(num == i * i){
                System.out.print("Yes");
                return;
            }
        } int i = 1; int i = 1; i 1 i<= 1000 i 1000 i++ i++ i {
            if(num == i * i){
                System.out.print("Yes");
                return;
            }
        } {
            if(num == i * i){
                System.out.print("Yes");
                return;
            }
        } if(num == i * i){
                System.out.print("Yes");
                return;
            } num == i * i num i * i i i {
                System.out.print("Yes");
                return;
            } System.out.print("Yes") System.out.print 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 {
        Scanner sc = new Scanner(System.in);
        // Your code here!
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        String str = String.valueOf(a) + String.valueOf(b);
        
        int num = Integer.parseInt(str);
        
        // double result = Math.sqrt((double)num);
        // System.out.print(result);
        
        for(int i = 1; i<= 1000;i++){
            if(num == i * i){
                System.out.print("Yes");
                return;
            }
        }
        
        System.out.println("No");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        // Your code here!
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        String str = String.valueOf(a) + String.valueOf(b);
        
        int num = Integer.parseInt(str);
        
        // double result = Math.sqrt((double)num);
        // System.out.print(result);
        
        for(int i = 1; i<= 1000;i++){
            if(num == i * i){
                System.out.print("Yes");
                return;
            }
        }
        
        System.out.println("No");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        // Your code here!
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        String str = String.valueOf(a) + String.valueOf(b);
        
        int num = Integer.parseInt(str);
        
        // double result = Math.sqrt((double)num);
        // System.out.print(result);
        
        for(int i = 1; i<= 1000;i++){
            if(num == i * i){
                System.out.print("Yes");
                return;
            }
        }
        
        System.out.println("No");
    }
}
