import java.util.Scanner;


public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		String b = sc.next();

		sc.close();

		String ab = a + b;
		int value = Integer.parseInt(ab);

		String ans = "No";

		for(int i = 4; i <= Math.sqrt(value); i++){
			if(i*i == value){
				ans = "Yes";
				break;
			}
		}

		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		String b = sc.next();

		sc.close();

		String ab = a + b;
		int value = Integer.parseInt(ab);

		String ans = "No";

		for(int i = 4; i <= Math.sqrt(value); i++){
			if(i*i == value){
				ans = "Yes";
				break;
			}
		}

		System.out.println(ans);
	}
} Main public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		String b = sc.next();

		sc.close();

		String ab = a + b;
		int value = Integer.parseInt(ab);

		String ans = "No";

		for(int i = 4; i <= Math.sqrt(value); i++){
			if(i*i == value){
				ans = "Yes";
				break;
			}
		}

		System.out.println(ans);
	} main {

		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		String b = sc.next();

		sc.close();

		String ab = a + b;
		int value = Integer.parseInt(ab);

		String ans = "No";

		for(int i = 4; i <= Math.sqrt(value); i++){
			if(i*i == value){
				ans = "Yes";
				break;
			}
		}

		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc sc.close() sc.close sc String ab = a + b; ab a + b a b int value = Integer.parseInt(ab); value Integer.parseInt(ab) Integer.parseInt Integer ab String ans = "No"; ans "No" for(int i = 4; i <= Math.sqrt(value); i++){
			if(i*i == value){
				ans = "Yes";
				break;
			}
		} int i = 4; int i = 4; i 4 i <= Math.sqrt(value) i Math.sqrt(value) Math.sqrt Math value i++ i++ i {
			if(i*i == value){
				ans = "Yes";
				break;
			}
		} {
			if(i*i == value){
				ans = "Yes";
				break;
			}
		} if(i*i == value){
				ans = "Yes";
				break;
			} i*i == value i*i i i value {
				ans = "Yes";
				break;
			} ans = "Yes" ans "Yes" break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		String b = sc.next();

		sc.close();

		String ab = a + b;
		int value = Integer.parseInt(ab);

		String ans = "No";

		for(int i = 4; i <= Math.sqrt(value); i++){
			if(i*i == value){
				ans = "Yes";
				break;
			}
		}

		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		String b = sc.next();

		sc.close();

		String ab = a + b;
		int value = Integer.parseInt(ab);

		String ans = "No";

		for(int i = 4; i <= Math.sqrt(value); i++){
			if(i*i == value){
				ans = "Yes";
				break;
			}
		}

		System.out.println(ans);
	}
} Main
import java.util.Scanner;


public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		String b = sc.next();

		sc.close();

		String ab = a + b;
		int value = Integer.parseInt(ab);

		String ans = "No";

		for(int i = 4; i <= Math.sqrt(value); i++){
			if(i*i == value){
				ans = "Yes";
				break;
			}
		}

		System.out.println(ans);
	}
}
