import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b;
		a = sc.nextInt();
		b = sc.nextInt();
		int k =0;
		for(int i=0;i<3;i++){
			if(b==0){
				k=1;
			}
			if((int)(b/Math.pow(10,i))==0){
				break;	
			}
			k++;
		}

		int h = a * (int)Math.pow(10,k) + b;
		boolean yes = false;
		
		for(int i=0;i<=317;i++){
			if(h == i*i){
				yes = true;
			}
		}

		System.err.println(h);
		if(yes){
			System.out.println("Yes");
		}else{
			System.out.println("No");

		}
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b;
		a = sc.nextInt();
		b = sc.nextInt();
		int k =0;
		for(int i=0;i<3;i++){
			if(b==0){
				k=1;
			}
			if((int)(b/Math.pow(10,i))==0){
				break;	
			}
			k++;
		}

		int h = a * (int)Math.pow(10,k) + b;
		boolean yes = false;
		
		for(int i=0;i<=317;i++){
			if(h == i*i){
				yes = true;
			}
		}

		System.err.println(h);
		if(yes){
			System.out.println("Yes");
		}else{
			System.out.println("No");

		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b;
		a = sc.nextInt();
		b = sc.nextInt();
		int k =0;
		for(int i=0;i<3;i++){
			if(b==0){
				k=1;
			}
			if((int)(b/Math.pow(10,i))==0){
				break;	
			}
			k++;
		}

		int h = a * (int)Math.pow(10,k) + b;
		boolean yes = false;
		
		for(int i=0;i<=317;i++){
			if(h == i*i){
				yes = true;
			}
		}

		System.err.println(h);
		if(yes){
			System.out.println("Yes");
		}else{
			System.out.println("No");

		}
	} main {
		Scanner sc = new Scanner(System.in);
		int a,b;
		a = sc.nextInt();
		b = sc.nextInt();
		int k =0;
		for(int i=0;i<3;i++){
			if(b==0){
				k=1;
			}
			if((int)(b/Math.pow(10,i))==0){
				break;	
			}
			k++;
		}

		int h = a * (int)Math.pow(10,k) + b;
		boolean yes = false;
		
		for(int i=0;i<=317;i++){
			if(h == i*i){
				yes = true;
			}
		}

		System.err.println(h);
		if(yes){
			System.out.println("Yes");
		}else{
			System.out.println("No");

		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a a b; b a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc int k =0; k 0 for(int i=0;i<3;i++){
			if(b==0){
				k=1;
			}
			if((int)(b/Math.pow(10,i))==0){
				break;	
			}
			k++;
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			if(b==0){
				k=1;
			}
			if((int)(b/Math.pow(10,i))==0){
				break;	
			}
			k++;
		} {
			if(b==0){
				k=1;
			}
			if((int)(b/Math.pow(10,i))==0){
				break;	
			}
			k++;
		} if(b==0){
				k=1;
			} b==0 b 0 {
				k=1;
			} k=1 k 1 if((int)(b/Math.pow(10,i))==0){
				break;	
			} (int)(b/Math.pow(10,i))==0 (int)(b/Math.pow(10,i)) b Math.pow(10,i) Math.pow Math 10 i 0 {
				break;	
			} break; k++ k int h = a * (int)Math.pow(10,k) + b; h a * (int)Math.pow(10,k) + b a * (int)Math.pow(10,k) a (int)Math.pow(10,k) Math.pow Math 10 k b boolean yes = false; yes false for(int i=0;i<=317;i++){
			if(h == i*i){
				yes = true;
			}
		} int i=0; int i=0; i 0 i<=317 i 317 i++ i++ i {
			if(h == i*i){
				yes = true;
			}
		} {
			if(h == i*i){
				yes = true;
			}
		} if(h == i*i){
				yes = true;
			} h == i*i h i*i i i {
				yes = true;
			} yes = true yes true System.err.println(h) System.err.println System.err System System.err h if(yes){
			System.out.println("Yes");
		}else{
			System.out.println("No");

		} yes {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");

		} System.out.println("No") System.out.println System.out System System.out "No" String[] args args
import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b;
		a = sc.nextInt();
		b = sc.nextInt();
		int k =0;
		for(int i=0;i<3;i++){
			if(b==0){
				k=1;
			}
			if((int)(b/Math.pow(10,i))==0){
				break;	
			}
			k++;
		}

		int h = a * (int)Math.pow(10,k) + b;
		boolean yes = false;
		
		for(int i=0;i<=317;i++){
			if(h == i*i){
				yes = true;
			}
		}

		System.err.println(h);
		if(yes){
			System.out.println("Yes");
		}else{
			System.out.println("No");

		}
	}
}
