import java.util.*;
public class Main {
	
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int N = Integer.parseInt(a + "" + b);
        
        double d = Math.sqrt(N);
        
        
        
        System.out.println(d % 1 == 0 ? "Yes" : "No");
    }
    
} import java.util.*; util.* java public class Main {
	
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int N = Integer.parseInt(a + "" + b);
        
        double d = Math.sqrt(N);
        
        
        
        System.out.println(d % 1 == 0 ? "Yes" : "No");
    }
    
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int N = Integer.parseInt(a + "" + b);
        
        double d = Math.sqrt(N);
        
        
        
        System.out.println(d % 1 == 0 ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int N = Integer.parseInt(a + "" + b);
        
        double d = Math.sqrt(N);
        
        
        
        System.out.println(d % 1 == 0 ? "Yes" : "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 int N = Integer.parseInt(a + "" + b); N Integer.parseInt(a + "" + b) Integer.parseInt Integer a + "" + b a + "" + b a "" b double d = Math.sqrt(N); d Math.sqrt(N) Math.sqrt Math N System.out.println(d % 1 == 0 ? "Yes" : "No") System.out.println System.out System System.out d % 1 == 0 ? "Yes" : "No" d % 1 == 0 d % 1 d 1 0 "Yes" "No" String[] args args public class Main {
	
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int N = Integer.parseInt(a + "" + b);
        
        double d = Math.sqrt(N);
        
        
        
        System.out.println(d % 1 == 0 ? "Yes" : "No");
    }
    
} public class Main {
	
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int N = Integer.parseInt(a + "" + b);
        
        double d = Math.sqrt(N);
        
        
        
        System.out.println(d % 1 == 0 ? "Yes" : "No");
    }
    
} Main
import java.util.*;
public class Main {
	
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int N = Integer.parseInt(a + "" + b);
        
        double d = Math.sqrt(N);
        
        
        
        System.out.println(d % 1 == 0 ? "Yes" : "No");
    }
    
}