import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a1 = s.nextInt();
		int a2 = s.nextInt();

		String input = Integer.toString(a1) + Integer.toString(a2);
		int iValue = Integer.parseInt(input);
		double sqrt = Math.floor(Math.sqrt(iValue));

		String ret;
		if (iValue == Math.pow(sqrt, 2)) {
			ret = "Yes";
		} else {
			ret = "No";
		}

		System.out.println(ret);
	}

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

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a1 = s.nextInt();
		int a2 = s.nextInt();

		String input = Integer.toString(a1) + Integer.toString(a2);
		int iValue = Integer.parseInt(input);
		double sqrt = Math.floor(Math.sqrt(iValue));

		String ret;
		if (iValue == Math.pow(sqrt, 2)) {
			ret = "Yes";
		} else {
			ret = "No";
		}

		System.out.println(ret);
	}

} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a1 = s.nextInt();
		int a2 = s.nextInt();

		String input = Integer.toString(a1) + Integer.toString(a2);
		int iValue = Integer.parseInt(input);
		double sqrt = Math.floor(Math.sqrt(iValue));

		String ret;
		if (iValue == Math.pow(sqrt, 2)) {
			ret = "Yes";
		} else {
			ret = "No";
		}

		System.out.println(ret);
	} main {
		Scanner s = new Scanner(System.in);
		int a1 = s.nextInt();
		int a2 = s.nextInt();

		String input = Integer.toString(a1) + Integer.toString(a2);
		int iValue = Integer.parseInt(input);
		double sqrt = Math.floor(Math.sqrt(iValue));

		String ret;
		if (iValue == Math.pow(sqrt, 2)) {
			ret = "Yes";
		} else {
			ret = "No";
		}

		System.out.println(ret);
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int a1 = s.nextInt(); a1 s.nextInt() s.nextInt s int a2 = s.nextInt(); a2 s.nextInt() s.nextInt s String input = Integer.toString(a1) + Integer.toString(a2); input Integer.toString(a1) + Integer.toString(a2) Integer.toString(a1) Integer.toString Integer a1 Integer.toString(a2) Integer.toString Integer a2 int iValue = Integer.parseInt(input); iValue Integer.parseInt(input) Integer.parseInt Integer input double sqrt = Math.floor(Math.sqrt(iValue)); sqrt Math.floor(Math.sqrt(iValue)) Math.floor Math Math.sqrt(iValue) Math.sqrt Math iValue String ret; ret if (iValue == Math.pow(sqrt, 2)) {
			ret = "Yes";
		} else {
			ret = "No";
		} iValue == Math.pow(sqrt, 2) iValue Math.pow(sqrt, 2) Math.pow Math sqrt 2 {
			ret = "Yes";
		} ret = "Yes" ret "Yes" {
			ret = "No";
		} ret = "No" ret "No" System.out.println(ret) System.out.println System.out System System.out ret String[] args args public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a1 = s.nextInt();
		int a2 = s.nextInt();

		String input = Integer.toString(a1) + Integer.toString(a2);
		int iValue = Integer.parseInt(input);
		double sqrt = Math.floor(Math.sqrt(iValue));

		String ret;
		if (iValue == Math.pow(sqrt, 2)) {
			ret = "Yes";
		} else {
			ret = "No";
		}

		System.out.println(ret);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a1 = s.nextInt();
		int a2 = s.nextInt();

		String input = Integer.toString(a1) + Integer.toString(a2);
		int iValue = Integer.parseInt(input);
		double sqrt = Math.floor(Math.sqrt(iValue));

		String ret;
		if (iValue == Math.pow(sqrt, 2)) {
			ret = "Yes";
		} else {
			ret = "No";
		}

		System.out.println(ret);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a1 = s.nextInt();
		int a2 = s.nextInt();

		String input = Integer.toString(a1) + Integer.toString(a2);
		int iValue = Integer.parseInt(input);
		double sqrt = Math.floor(Math.sqrt(iValue));

		String ret;
		if (iValue == Math.pow(sqrt, 2)) {
			ret = "Yes";
		} else {
			ret = "No";
		}

		System.out.println(ret);
	}

}