import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		//数取得
		String a = sc.next();
		String b = sc.next();

		String gudem = a+b;
		int num = Integer.parseInt(gudem);

		String answer = "No";

		for(int i = 0; i * i < 100000; i++) {
			if(num == i * i) {
				answer = "Yes";
				break;
			}
		}

		System.out.println(answer);
	}

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		//数取得
		String a = sc.next();
		String b = sc.next();

		String gudem = a+b;
		int num = Integer.parseInt(gudem);

		String answer = "No";

		for(int i = 0; i * i < 100000; i++) {
			if(num == i * i) {
				answer = "Yes";
				break;
			}
		}

		System.out.println(answer);
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		//数取得
		String a = sc.next();
		String b = sc.next();

		String gudem = a+b;
		int num = Integer.parseInt(gudem);

		String answer = "No";

		for(int i = 0; i * i < 100000; i++) {
			if(num == i * i) {
				answer = "Yes";
				break;
			}
		}

		System.out.println(answer);
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		//数取得
		String a = sc.next();
		String b = sc.next();

		String gudem = a+b;
		int num = Integer.parseInt(gudem);

		String answer = "No";

		for(int i = 0; i * i < 100000; i++) {
			if(num == i * i) {
				answer = "Yes";
				break;
			}
		}

		System.out.println(answer);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc String gudem = a+b; gudem a+b a b int num = Integer.parseInt(gudem); num Integer.parseInt(gudem) Integer.parseInt Integer gudem String answer = "No"; answer "No" for(int i = 0; i * i < 100000; i++) {
			if(num == i * i) {
				answer = "Yes";
				break;
			}
		} int i = 0; int i = 0; i 0 i * i < 100000 i * i i i 100000 i++ i++ i {
			if(num == i * i) {
				answer = "Yes";
				break;
			}
		} {
			if(num == i * i) {
				answer = "Yes";
				break;
			}
		} if(num == i * i) {
				answer = "Yes";
				break;
			} num == i * i num i * i i i {
				answer = "Yes";
				break;
			} answer = "Yes" answer "Yes" break; System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		//数取得
		String a = sc.next();
		String b = sc.next();

		String gudem = a+b;
		int num = Integer.parseInt(gudem);

		String answer = "No";

		for(int i = 0; i * i < 100000; i++) {
			if(num == i * i) {
				answer = "Yes";
				break;
			}
		}

		System.out.println(answer);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		//数取得
		String a = sc.next();
		String b = sc.next();

		String gudem = a+b;
		int num = Integer.parseInt(gudem);

		String answer = "No";

		for(int i = 0; i * i < 100000; i++) {
			if(num == i * i) {
				answer = "Yes";
				break;
			}
		}

		System.out.println(answer);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		//数取得
		String a = sc.next();
		String b = sc.next();

		String gudem = a+b;
		int num = Integer.parseInt(gudem);

		String answer = "No";

		for(int i = 0; i * i < 100000; i++) {
			if(num == i * i) {
				answer = "Yes";
				break;
			}
		}

		System.out.println(answer);
	}

}
