import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		StringBuilder sb = new StringBuilder();

		sb.append(sc.nextInt()).append(sc.nextInt());

		int inNum = Integer.valueOf(sb.toString());

		for(int i = 4; i < 400 ; i++) {
			if (inNum == i*i) {
				System.out.println("Yes");
				break;
			} else if(inNum < i*i){
				System.out.println("No");
				break;
			}
		}
	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		StringBuilder sb = new StringBuilder();

		sb.append(sc.nextInt()).append(sc.nextInt());

		int inNum = Integer.valueOf(sb.toString());

		for(int i = 4; i < 400 ; i++) {
			if (inNum == i*i) {
				System.out.println("Yes");
				break;
			} else if(inNum < i*i){
				System.out.println("No");
				break;
			}
		}
	}

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

		Scanner sc = new Scanner(System.in);

		StringBuilder sb = new StringBuilder();

		sb.append(sc.nextInt()).append(sc.nextInt());

		int inNum = Integer.valueOf(sb.toString());

		for(int i = 4; i < 400 ; i++) {
			if (inNum == i*i) {
				System.out.println("Yes");
				break;
			} else if(inNum < i*i){
				System.out.println("No");
				break;
			}
		}
	} main {

		Scanner sc = new Scanner(System.in);

		StringBuilder sb = new StringBuilder();

		sb.append(sc.nextInt()).append(sc.nextInt());

		int inNum = Integer.valueOf(sb.toString());

		for(int i = 4; i < 400 ; i++) {
			if (inNum == i*i) {
				System.out.println("Yes");
				break;
			} else if(inNum < i*i){
				System.out.println("No");
				break;
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder sb = new StringBuilder(); sb new StringBuilder() sb.append(sc.nextInt()).append(sc.nextInt()) sb.append(sc.nextInt()).append sb.append(sc.nextInt()) sb.append sb sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc int inNum = Integer.valueOf(sb.toString()); inNum Integer.valueOf(sb.toString()) Integer.valueOf Integer sb.toString() sb.toString sb for(int i = 4; i < 400 ; i++) {
			if (inNum == i*i) {
				System.out.println("Yes");
				break;
			} else if(inNum < i*i){
				System.out.println("No");
				break;
			}
		} int i = 4; int i = 4; i 4 i < 400 i 400 i++ i++ i {
			if (inNum == i*i) {
				System.out.println("Yes");
				break;
			} else if(inNum < i*i){
				System.out.println("No");
				break;
			}
		} {
			if (inNum == i*i) {
				System.out.println("Yes");
				break;
			} else if(inNum < i*i){
				System.out.println("No");
				break;
			}
		} if (inNum == i*i) {
				System.out.println("Yes");
				break;
			} else if(inNum < i*i){
				System.out.println("No");
				break;
			} inNum == i*i inNum i*i i i {
				System.out.println("Yes");
				break;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" break; if(inNum < i*i){
				System.out.println("No");
				break;
			} inNum < i*i inNum 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 public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		StringBuilder sb = new StringBuilder();

		sb.append(sc.nextInt()).append(sc.nextInt());

		int inNum = Integer.valueOf(sb.toString());

		for(int i = 4; i < 400 ; i++) {
			if (inNum == i*i) {
				System.out.println("Yes");
				break;
			} else if(inNum < i*i){
				System.out.println("No");
				break;
			}
		}
	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		StringBuilder sb = new StringBuilder();

		sb.append(sc.nextInt()).append(sc.nextInt());

		int inNum = Integer.valueOf(sb.toString());

		for(int i = 4; i < 400 ; i++) {
			if (inNum == i*i) {
				System.out.println("Yes");
				break;
			} else if(inNum < i*i){
				System.out.println("No");
				break;
			}
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		StringBuilder sb = new StringBuilder();

		sb.append(sc.nextInt()).append(sc.nextInt());

		int inNum = Integer.valueOf(sb.toString());

		for(int i = 4; i < 400 ; i++) {
			if (inNum == i*i) {
				System.out.println("Yes");
				break;
			} else if(inNum < i*i){
				System.out.println("No");
				break;
			}
		}
	}

}
