import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		String moji=a+""+b;
		int res=Integer.parseInt(moji);

		for(int i=0; i<=320; i++) {
			if(res==i*i) {
				System.out.println("Yes");
				break;
			}
			else if(res<i*i) {
				System.out.println("No");
				break;
			}
		}
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		String moji=a+""+b;
		int res=Integer.parseInt(moji);

		for(int i=0; i<=320; i++) {
			if(res==i*i) {
				System.out.println("Yes");
				break;
			}
			else if(res<i*i) {
				System.out.println("No");
				break;
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		String moji=a+""+b;
		int res=Integer.parseInt(moji);

		for(int i=0; i<=320; i++) {
			if(res==i*i) {
				System.out.println("Yes");
				break;
			}
			else if(res<i*i) {
				System.out.println("No");
				break;
			}
		}
	} main {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		String moji=a+""+b;
		int res=Integer.parseInt(moji);

		for(int i=0; i<=320; i++) {
			if(res==i*i) {
				System.out.println("Yes");
				break;
			}
			else if(res<i*i) {
				System.out.println("No");
				break;
			}
		}
	} 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 String moji=a+""+b; moji a+""+b a+""+b a "" b int res=Integer.parseInt(moji); res Integer.parseInt(moji) Integer.parseInt Integer moji for(int i=0; i<=320; i++) {
			if(res==i*i) {
				System.out.println("Yes");
				break;
			}
			else if(res<i*i) {
				System.out.println("No");
				break;
			}
		} int i=0; int i=0; i 0 i<=320 i 320 i++ i++ i {
			if(res==i*i) {
				System.out.println("Yes");
				break;
			}
			else if(res<i*i) {
				System.out.println("No");
				break;
			}
		} {
			if(res==i*i) {
				System.out.println("Yes");
				break;
			}
			else if(res<i*i) {
				System.out.println("No");
				break;
			}
		} if(res==i*i) {
				System.out.println("Yes");
				break;
			}
			else if(res<i*i) {
				System.out.println("No");
				break;
			} res==i*i res i*i i i {
				System.out.println("Yes");
				break;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" break; if(res<i*i) {
				System.out.println("No");
				break;
			} res<i*i res i*i i i {
				System.out.println("No");
				break;
			} System.out.println("No") System.out.println System.out System System.out "No" break; String[] args args
import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		String moji=a+""+b;
		int res=Integer.parseInt(moji);

		for(int i=0; i<=320; i++) {
			if(res==i*i) {
				System.out.println("Yes");
				break;
			}
			else if(res<i*i) {
				System.out.println("No");
				break;
			}
		}
	}
}