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 c = Integer.parseInt(String.valueOf(a) + String.valueOf(b));
		boolean flag = false;
		for (int i = (int) (Math.sqrt(c) - 2); i <= Math.sqrt(c); i++) {
			if (i * i == c) {
				flag = true;
			}
		}
		if (flag) {
			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 c = Integer.parseInt(String.valueOf(a) + String.valueOf(b));
		boolean flag = false;
		for (int i = (int) (Math.sqrt(c) - 2); i <= Math.sqrt(c); i++) {
			if (i * i == c) {
				flag = true;
			}
		}
		if (flag) {
			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 c = Integer.parseInt(String.valueOf(a) + String.valueOf(b));
		boolean flag = false;
		for (int i = (int) (Math.sqrt(c) - 2); i <= Math.sqrt(c); i++) {
			if (i * i == c) {
				flag = true;
			}
		}
		if (flag) {
			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 c = Integer.parseInt(String.valueOf(a) + String.valueOf(b));
		boolean flag = false;
		for (int i = (int) (Math.sqrt(c) - 2); i <= Math.sqrt(c); i++) {
			if (i * i == c) {
				flag = true;
			}
		}
		if (flag) {
			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 c = Integer.parseInt(String.valueOf(a) + String.valueOf(b)); c Integer.parseInt(String.valueOf(a) + String.valueOf(b)) Integer.parseInt Integer String.valueOf(a) + String.valueOf(b) String.valueOf(a) String.valueOf String a String.valueOf(b) String.valueOf String b boolean flag = false; flag false for (int i = (int) (Math.sqrt(c) - 2); i <= Math.sqrt(c); i++) {
			if (i * i == c) {
				flag = true;
			}
		} int i = (int) (Math.sqrt(c) - 2); int i = (int) (Math.sqrt(c) - 2); i (int) (Math.sqrt(c) - 2) Math.sqrt(c) Math.sqrt Math c 2 i <= Math.sqrt(c) i Math.sqrt(c) Math.sqrt Math c i++ i++ i {
			if (i * i == c) {
				flag = true;
			}
		} {
			if (i * i == c) {
				flag = true;
			}
		} if (i * i == c) {
				flag = true;
			} i * i == c i * i i i c {
				flag = true;
			} flag = true flag true if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} flag {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} 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 c = Integer.parseInt(String.valueOf(a) + String.valueOf(b));
		boolean flag = false;
		for (int i = (int) (Math.sqrt(c) - 2); i <= Math.sqrt(c); i++) {
			if (i * i == c) {
				flag = true;
			}
		}
		if (flag) {
			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 c = Integer.parseInt(String.valueOf(a) + String.valueOf(b));
		boolean flag = false;
		for (int i = (int) (Math.sqrt(c) - 2); i <= Math.sqrt(c); i++) {
			if (i * i == c) {
				flag = true;
			}
		}
		if (flag) {
			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 c = Integer.parseInt(String.valueOf(a) + String.valueOf(b));
		boolean flag = false;
		for (int i = (int) (Math.sqrt(c) - 2); i <= Math.sqrt(c); i++) {
			if (i * i == c) {
				flag = true;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}