import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a= scan.nextInt();
		int b= scan.nextInt();
		scan.close();

		String s=String.valueOf(a)+String.valueOf(b);
		int num=Integer.valueOf(s);
		int check=0;
		for(int i=1;i<=num;i++) {
			if(i*i==num) {
				check=1;
				break;
			}
		}
		System.out.println((check==1)? "Yes":"No");
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a= scan.nextInt();
		int b= scan.nextInt();
		scan.close();

		String s=String.valueOf(a)+String.valueOf(b);
		int num=Integer.valueOf(s);
		int check=0;
		for(int i=1;i<=num;i++) {
			if(i*i==num) {
				check=1;
				break;
			}
		}
		System.out.println((check==1)? "Yes":"No");
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a= scan.nextInt();
		int b= scan.nextInt();
		scan.close();

		String s=String.valueOf(a)+String.valueOf(b);
		int num=Integer.valueOf(s);
		int check=0;
		for(int i=1;i<=num;i++) {
			if(i*i==num) {
				check=1;
				break;
			}
		}
		System.out.println((check==1)? "Yes":"No");
	} main {
		Scanner scan = new Scanner(System.in);
		int a= scan.nextInt();
		int b= scan.nextInt();
		scan.close();

		String s=String.valueOf(a)+String.valueOf(b);
		int num=Integer.valueOf(s);
		int check=0;
		for(int i=1;i<=num;i++) {
			if(i*i==num) {
				check=1;
				break;
			}
		}
		System.out.println((check==1)? "Yes":"No");
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a= scan.nextInt(); a scan.nextInt() scan.nextInt scan int b= scan.nextInt(); b scan.nextInt() scan.nextInt scan scan.close() scan.close scan String s=String.valueOf(a)+String.valueOf(b); s String.valueOf(a)+String.valueOf(b) String.valueOf(a) String.valueOf String a String.valueOf(b) String.valueOf String b int num=Integer.valueOf(s); num Integer.valueOf(s) Integer.valueOf Integer s int check=0; check 0 for(int i=1;i<=num;i++) {
			if(i*i==num) {
				check=1;
				break;
			}
		} int i=1; int i=1; i 1 i<=num i num i++ i++ i {
			if(i*i==num) {
				check=1;
				break;
			}
		} {
			if(i*i==num) {
				check=1;
				break;
			}
		} if(i*i==num) {
				check=1;
				break;
			} i*i==num i*i i i num {
				check=1;
				break;
			} check=1 check 1 break; System.out.println((check==1)? "Yes":"No") System.out.println System.out System System.out (check==1)? "Yes":"No" (check==1) check 1 "Yes" "No" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a= scan.nextInt();
		int b= scan.nextInt();
		scan.close();

		String s=String.valueOf(a)+String.valueOf(b);
		int num=Integer.valueOf(s);
		int check=0;
		for(int i=1;i<=num;i++) {
			if(i*i==num) {
				check=1;
				break;
			}
		}
		System.out.println((check==1)? "Yes":"No");
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a= scan.nextInt();
		int b= scan.nextInt();
		scan.close();

		String s=String.valueOf(a)+String.valueOf(b);
		int num=Integer.valueOf(s);
		int check=0;
		for(int i=1;i<=num;i++) {
			if(i*i==num) {
				check=1;
				break;
			}
		}
		System.out.println((check==1)? "Yes":"No");
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a= scan.nextInt();
		int b= scan.nextInt();
		scan.close();

		String s=String.valueOf(a)+String.valueOf(b);
		int num=Integer.valueOf(s);
		int check=0;
		for(int i=1;i<=num;i++) {
			if(i*i==num) {
				check=1;
				break;
			}
		}
		System.out.println((check==1)? "Yes":"No");
	}

}