import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String a = reader.next();
		String b = reader.next();
		int N = Integer.parseInt(a + b);
		String ans = "No";

		int base = 1;
		while (Math.pow((base), 2) <= N) {
			if (Math.pow((base), 2) == N) {
				ans = "Yes";
			}
			base++;
		}


		System.out.print(ans);
		reader.close();
	}
}


 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String a = reader.next();
		String b = reader.next();
		int N = Integer.parseInt(a + b);
		String ans = "No";

		int base = 1;
		while (Math.pow((base), 2) <= N) {
			if (Math.pow((base), 2) == N) {
				ans = "Yes";
			}
			base++;
		}


		System.out.print(ans);
		reader.close();
	}
} Main public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String a = reader.next();
		String b = reader.next();
		int N = Integer.parseInt(a + b);
		String ans = "No";

		int base = 1;
		while (Math.pow((base), 2) <= N) {
			if (Math.pow((base), 2) == N) {
				ans = "Yes";
			}
			base++;
		}


		System.out.print(ans);
		reader.close();
	} main {
		Scanner reader = new Scanner(System.in);
		String a = reader.next();
		String b = reader.next();
		int N = Integer.parseInt(a + b);
		String ans = "No";

		int base = 1;
		while (Math.pow((base), 2) <= N) {
			if (Math.pow((base), 2) == N) {
				ans = "Yes";
			}
			base++;
		}


		System.out.print(ans);
		reader.close();
	} Scanner reader = new Scanner(System.in); reader new Scanner(System.in) String a = reader.next(); a reader.next() reader.next reader String b = reader.next(); b reader.next() reader.next reader int N = Integer.parseInt(a + b); N Integer.parseInt(a + b) Integer.parseInt Integer a + b a b String ans = "No"; ans "No" int base = 1; base 1 while (Math.pow((base), 2) <= N) {
			if (Math.pow((base), 2) == N) {
				ans = "Yes";
			}
			base++;
		} Math.pow((base), 2) <= N Math.pow((base), 2) Math.pow Math (base) 2 N {
			if (Math.pow((base), 2) == N) {
				ans = "Yes";
			}
			base++;
		} if (Math.pow((base), 2) == N) {
				ans = "Yes";
			} Math.pow((base), 2) == N Math.pow((base), 2) Math.pow Math (base) 2 N {
				ans = "Yes";
			} ans = "Yes" ans "Yes" base++ base System.out.print(ans) System.out.print System.out System System.out ans reader.close() reader.close reader String[] args args public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String a = reader.next();
		String b = reader.next();
		int N = Integer.parseInt(a + b);
		String ans = "No";

		int base = 1;
		while (Math.pow((base), 2) <= N) {
			if (Math.pow((base), 2) == N) {
				ans = "Yes";
			}
			base++;
		}


		System.out.print(ans);
		reader.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String a = reader.next();
		String b = reader.next();
		int N = Integer.parseInt(a + b);
		String ans = "No";

		int base = 1;
		while (Math.pow((base), 2) <= N) {
			if (Math.pow((base), 2) == N) {
				ans = "Yes";
			}
			base++;
		}


		System.out.print(ans);
		reader.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String a = reader.next();
		String b = reader.next();
		int N = Integer.parseInt(a + b);
		String ans = "No";

		int base = 1;
		while (Math.pow((base), 2) <= N) {
			if (Math.pow((base), 2) == N) {
				ans = "Yes";
			}
			base++;
		}


		System.out.print(ans);
		reader.close();
	}
}



