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();

		String abString = String.valueOf(a) + String.valueOf(b);
		int abInt = Integer.parseInt(abString);
		String result = "No";

		for (int i = 1 ; i <= abInt; i++) {
			if (i * i == abInt) {
				result = "Yes";
				break;
			}
		}
		System.out.println(result);

	}
}
 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();

		String abString = String.valueOf(a) + String.valueOf(b);
		int abInt = Integer.parseInt(abString);
		String result = "No";

		for (int i = 1 ; i <= abInt; i++) {
			if (i * i == abInt) {
				result = "Yes";
				break;
			}
		}
		System.out.println(result);

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

		String abString = String.valueOf(a) + String.valueOf(b);
		int abInt = Integer.parseInt(abString);
		String result = "No";

		for (int i = 1 ; i <= abInt; i++) {
			if (i * i == abInt) {
				result = "Yes";
				break;
			}
		}
		System.out.println(result);

	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		String abString = String.valueOf(a) + String.valueOf(b);
		int abInt = Integer.parseInt(abString);
		String result = "No";

		for (int i = 1 ; i <= abInt; i++) {
			if (i * i == abInt) {
				result = "Yes";
				break;
			}
		}
		System.out.println(result);

	} 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 abString = String.valueOf(a) + String.valueOf(b); abString String.valueOf(a) + String.valueOf(b) String.valueOf(a) String.valueOf String a String.valueOf(b) String.valueOf String b int abInt = Integer.parseInt(abString); abInt Integer.parseInt(abString) Integer.parseInt Integer abString String result = "No"; result "No" for (int i = 1 ; i <= abInt; i++) {
			if (i * i == abInt) {
				result = "Yes";
				break;
			}
		} int i = 1 ; int i = 1 ; i 1 i <= abInt i abInt i++ i++ i {
			if (i * i == abInt) {
				result = "Yes";
				break;
			}
		} {
			if (i * i == abInt) {
				result = "Yes";
				break;
			}
		} if (i * i == abInt) {
				result = "Yes";
				break;
			} i * i == abInt i * i i i abInt {
				result = "Yes";
				break;
			} result = "Yes" result "Yes" break; System.out.println(result) System.out.println System.out System System.out result 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();

		String abString = String.valueOf(a) + String.valueOf(b);
		int abInt = Integer.parseInt(abString);
		String result = "No";

		for (int i = 1 ; i <= abInt; i++) {
			if (i * i == abInt) {
				result = "Yes";
				break;
			}
		}
		System.out.println(result);

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

		String abString = String.valueOf(a) + String.valueOf(b);
		int abInt = Integer.parseInt(abString);
		String result = "No";

		for (int i = 1 ; i <= abInt; i++) {
			if (i * i == abInt) {
				result = "Yes";
				break;
			}
		}
		System.out.println(result);

	}
} 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();

		String abString = String.valueOf(a) + String.valueOf(b);
		int abInt = Integer.parseInt(abString);
		String result = "No";

		for (int i = 1 ; i <= abInt; i++) {
			if (i * i == abInt) {
				result = "Yes";
				break;
			}
		}
		System.out.println(result);

	}
}

