import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();

		int b = sc.nextInt();

		int bLen = String.valueOf(b).length();

		int c = a*(int)Math.pow(10, bLen) + b;

		boolean ans = false;

		for(int i=1;;i++) {

			if(i*i>c) break;

			if(i*i==c) {

				ans = true;

				break;
			}
		}

		if(ans) System.out.println("Yes");

		else System.out.println("No");
	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();

		int b = sc.nextInt();

		int bLen = String.valueOf(b).length();

		int c = a*(int)Math.pow(10, bLen) + b;

		boolean ans = false;

		for(int i=1;;i++) {

			if(i*i>c) break;

			if(i*i==c) {

				ans = true;

				break;
			}
		}

		if(ans) System.out.println("Yes");

		else System.out.println("No");
	}

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

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();

		int b = sc.nextInt();

		int bLen = String.valueOf(b).length();

		int c = a*(int)Math.pow(10, bLen) + b;

		boolean ans = false;

		for(int i=1;;i++) {

			if(i*i>c) break;

			if(i*i==c) {

				ans = true;

				break;
			}
		}

		if(ans) System.out.println("Yes");

		else System.out.println("No");
	} main {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();

		int b = sc.nextInt();

		int bLen = String.valueOf(b).length();

		int c = a*(int)Math.pow(10, bLen) + b;

		boolean ans = false;

		for(int i=1;;i++) {

			if(i*i>c) break;

			if(i*i==c) {

				ans = true;

				break;
			}
		}

		if(ans) System.out.println("Yes");

		else System.out.println("No");
	} 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 int bLen = String.valueOf(b).length(); bLen String.valueOf(b).length() String.valueOf(b).length String.valueOf(b) String.valueOf String b int c = a*(int)Math.pow(10, bLen) + b; c a*(int)Math.pow(10, bLen) + b a*(int)Math.pow(10, bLen) a (int)Math.pow(10, bLen) Math.pow Math 10 bLen b boolean ans = false; ans false for(int i=1;;i++) {

			if(i*i>c) break;

			if(i*i==c) {

				ans = true;

				break;
			}
		} int i=1; int i=1; i 1 i++ i++ i {

			if(i*i>c) break;

			if(i*i==c) {

				ans = true;

				break;
			}
		} {

			if(i*i>c) break;

			if(i*i==c) {

				ans = true;

				break;
			}
		} if(i*i>c) break; i*i>c i*i i i c break; if(i*i==c) {

				ans = true;

				break;
			} i*i==c i*i i i c {

				ans = true;

				break;
			} ans = true ans true break; if(ans) System.out.println("Yes");

		else System.out.println("No"); ans System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();

		int b = sc.nextInt();

		int bLen = String.valueOf(b).length();

		int c = a*(int)Math.pow(10, bLen) + b;

		boolean ans = false;

		for(int i=1;;i++) {

			if(i*i>c) break;

			if(i*i==c) {

				ans = true;

				break;
			}
		}

		if(ans) System.out.println("Yes");

		else System.out.println("No");
	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();

		int b = sc.nextInt();

		int bLen = String.valueOf(b).length();

		int c = a*(int)Math.pow(10, bLen) + b;

		boolean ans = false;

		for(int i=1;;i++) {

			if(i*i>c) break;

			if(i*i==c) {

				ans = true;

				break;
			}
		}

		if(ans) System.out.println("Yes");

		else System.out.println("No");
	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();

		int b = sc.nextInt();

		int bLen = String.valueOf(b).length();

		int c = a*(int)Math.pow(10, bLen) + b;

		boolean ans = false;

		for(int i=1;;i++) {

			if(i*i>c) break;

			if(i*i==c) {

				ans = true;

				break;
			}
		}

		if(ans) System.out.println("Yes");

		else System.out.println("No");
	}

}
