import java.util.Scanner;

public class Main { 
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] st = sc.nextLine().split(" ");
    	String mregedNumber = st[0] + st[1];
    	double heihou = Math.sqrt(Double.parseDouble(mregedNumber));
    	int intHeiohou = (int) heihou;
    	double compHeihou = (double) intHeiohou;
    	
    	String result = "";
    	if(heihou == compHeihou) {
    		result = "Yes";
    	}else {
    		result = "No";
    	}
    	System.out.println(result);
    	
    	
    	
    }
} import java.util.Scanner; Scanner java.util public class Main { 
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] st = sc.nextLine().split(" ");
    	String mregedNumber = st[0] + st[1];
    	double heihou = Math.sqrt(Double.parseDouble(mregedNumber));
    	int intHeiohou = (int) heihou;
    	double compHeihou = (double) intHeiohou;
    	
    	String result = "";
    	if(heihou == compHeihou) {
    		result = "Yes";
    	}else {
    		result = "No";
    	}
    	System.out.println(result);
    	
    	
    	
    }
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] st = sc.nextLine().split(" ");
    	String mregedNumber = st[0] + st[1];
    	double heihou = Math.sqrt(Double.parseDouble(mregedNumber));
    	int intHeiohou = (int) heihou;
    	double compHeihou = (double) intHeiohou;
    	
    	String result = "";
    	if(heihou == compHeihou) {
    		result = "Yes";
    	}else {
    		result = "No";
    	}
    	System.out.println(result);
    	
    	
    	
    } main {
    	Scanner sc = new Scanner(System.in);
    	String[] st = sc.nextLine().split(" ");
    	String mregedNumber = st[0] + st[1];
    	double heihou = Math.sqrt(Double.parseDouble(mregedNumber));
    	int intHeiohou = (int) heihou;
    	double compHeihou = (double) intHeiohou;
    	
    	String result = "";
    	if(heihou == compHeihou) {
    		result = "Yes";
    	}else {
    		result = "No";
    	}
    	System.out.println(result);
    	
    	
    	
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] st = sc.nextLine().split(" "); st sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " String mregedNumber = st[0] + st[1]; mregedNumber st[0] + st[1] st[0] st 0 st[1] st 1 double heihou = Math.sqrt(Double.parseDouble(mregedNumber)); heihou Math.sqrt(Double.parseDouble(mregedNumber)) Math.sqrt Math Double.parseDouble(mregedNumber) Double.parseDouble Double mregedNumber int intHeiohou = (int) heihou; intHeiohou (int) heihou double compHeihou = (double) intHeiohou; compHeihou (double) intHeiohou String result = ""; result "" if(heihou == compHeihou) {
    		result = "Yes";
    	}else {
    		result = "No";
    	} heihou == compHeihou heihou compHeihou {
    		result = "Yes";
    	} result = "Yes" result "Yes" {
    		result = "No";
    	} result = "No" result "No" System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main { 
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] st = sc.nextLine().split(" ");
    	String mregedNumber = st[0] + st[1];
    	double heihou = Math.sqrt(Double.parseDouble(mregedNumber));
    	int intHeiohou = (int) heihou;
    	double compHeihou = (double) intHeiohou;
    	
    	String result = "";
    	if(heihou == compHeihou) {
    		result = "Yes";
    	}else {
    		result = "No";
    	}
    	System.out.println(result);
    	
    	
    	
    }
} public class Main { 
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] st = sc.nextLine().split(" ");
    	String mregedNumber = st[0] + st[1];
    	double heihou = Math.sqrt(Double.parseDouble(mregedNumber));
    	int intHeiohou = (int) heihou;
    	double compHeihou = (double) intHeiohou;
    	
    	String result = "";
    	if(heihou == compHeihou) {
    		result = "Yes";
    	}else {
    		result = "No";
    	}
    	System.out.println(result);
    	
    	
    	
    }
} Main
import java.util.Scanner;

public class Main { 
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] st = sc.nextLine().split(" ");
    	String mregedNumber = st[0] + st[1];
    	double heihou = Math.sqrt(Double.parseDouble(mregedNumber));
    	int intHeiohou = (int) heihou;
    	double compHeihou = (double) intHeiohou;
    	
    	String result = "";
    	if(heihou == compHeihou) {
    		result = "Yes";
    	}else {
    		result = "No";
    	}
    	System.out.println(result);
    	
    	
    	
    }
}