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 c = Integer.valueOf(String.valueOf(a) + String.valueOf(b));
	
	if (isPerfectSquare((double)c)) {
            System.out.print("Yes");
       } else{
            System.out.print("No");
    }
	
	
	}
	
	static boolean isPerfectSquare(double x) 
    {
         
        // Find floating point value of
        // square root of x.
        double sr = Math.sqrt(x);
     
        // If square root is an integer
        return ((sr - Math.floor(sr)) == 0);
    }
	
} 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 c = Integer.valueOf(String.valueOf(a) + String.valueOf(b));
	
	if (isPerfectSquare((double)c)) {
            System.out.print("Yes");
       } else{
            System.out.print("No");
    }
	
	
	}
	
	static boolean isPerfectSquare(double x) 
    {
         
        // Find floating point value of
        // square root of x.
        double sr = Math.sqrt(x);
     
        // If square root is an integer
        return ((sr - Math.floor(sr)) == 0);
    }
	
} Main public static void main(String args[]) {
		
	Scanner sc = new Scanner(System.in);
			
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = Integer.valueOf(String.valueOf(a) + String.valueOf(b));
	
	if (isPerfectSquare((double)c)) {
            System.out.print("Yes");
       } else{
            System.out.print("No");
    }
	
	
	} main {
		
	Scanner sc = new Scanner(System.in);
			
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = Integer.valueOf(String.valueOf(a) + String.valueOf(b));
	
	if (isPerfectSquare((double)c)) {
            System.out.print("Yes");
       } else{
            System.out.print("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 c = Integer.valueOf(String.valueOf(a) + String.valueOf(b)); c Integer.valueOf(String.valueOf(a) + String.valueOf(b)) Integer.valueOf Integer String.valueOf(a) + String.valueOf(b) String.valueOf(a) String.valueOf String a String.valueOf(b) String.valueOf String b if (isPerfectSquare((double)c)) {
            System.out.print("Yes");
       } else{
            System.out.print("No");
    } isPerfectSquare((double)c) isPerfectSquare (double)c {
            System.out.print("Yes");
       } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
            System.out.print("No");
    } System.out.print("No") System.out.print System.out System System.out "No" String args[] args static boolean isPerfectSquare(double x) 
    {
         
        // Find floating point value of
        // square root of x.
        double sr = Math.sqrt(x);
     
        // If square root is an integer
        return ((sr - Math.floor(sr)) == 0);
    } isPerfectSquare {
         
        // Find floating point value of
        // square root of x.
        double sr = Math.sqrt(x);
     
        // If square root is an integer
        return ((sr - Math.floor(sr)) == 0);
    } double sr = Math.sqrt(x); sr Math.sqrt(x) Math.sqrt Math x return ((sr - Math.floor(sr)) == 0); ((sr - Math.floor(sr)) == 0) (sr - Math.floor(sr)) sr Math.floor(sr) Math.floor Math sr 0 double x x public class Main {
	
	
    public static void main(String args[]) {
		
	Scanner sc = new Scanner(System.in);
			
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = Integer.valueOf(String.valueOf(a) + String.valueOf(b));
	
	if (isPerfectSquare((double)c)) {
            System.out.print("Yes");
       } else{
            System.out.print("No");
    }
	
	
	}
	
	static boolean isPerfectSquare(double x) 
    {
         
        // Find floating point value of
        // square root of x.
        double sr = Math.sqrt(x);
     
        // If square root is an integer
        return ((sr - Math.floor(sr)) == 0);
    }
	
} public class Main {
	
	
    public static void main(String args[]) {
		
	Scanner sc = new Scanner(System.in);
			
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = Integer.valueOf(String.valueOf(a) + String.valueOf(b));
	
	if (isPerfectSquare((double)c)) {
            System.out.print("Yes");
       } else{
            System.out.print("No");
    }
	
	
	}
	
	static boolean isPerfectSquare(double x) 
    {
         
        // Find floating point value of
        // square root of x.
        double sr = Math.sqrt(x);
     
        // If square root is an integer
        return ((sr - Math.floor(sr)) == 0);
    }
	
} 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 c = Integer.valueOf(String.valueOf(a) + String.valueOf(b));
	
	if (isPerfectSquare((double)c)) {
            System.out.print("Yes");
       } else{
            System.out.print("No");
    }
	
	
	}
	
	static boolean isPerfectSquare(double x) 
    {
         
        // Find floating point value of
        // square root of x.
        double sr = Math.sqrt(x);
     
        // If square root is an integer
        return ((sr - Math.floor(sr)) == 0);
    }
	
}