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.valueOf(String.valueOf(a) + String.valueOf(b));

		boolean can = false;
		for (int i = 1; i <= 10000; i++) {
			if (c == Math.pow(i, 2)) can = true;
		}

		if (can) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}


		sc.close();
	}

} 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.valueOf(String.valueOf(a) + String.valueOf(b));

		boolean can = false;
		for (int i = 1; i <= 10000; i++) {
			if (c == Math.pow(i, 2)) can = true;
		}

		if (can) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}


		sc.close();
	}

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

		boolean can = false;
		for (int i = 1; i <= 10000; i++) {
			if (c == Math.pow(i, 2)) can = true;
		}

		if (can) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}


		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = Integer.valueOf(String.valueOf(a) + String.valueOf(b));

		boolean can = false;
		for (int i = 1; i <= 10000; i++) {
			if (c == Math.pow(i, 2)) can = true;
		}

		if (can) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}


		sc.close();
	} 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.valueOf(String.valueOf(a) + String.valueOf(b)); c Integer.valueOf(String.valueOf(a) + String.valueOf(b)) Integer.valueOf Integer String.valueOf(a) + String.valueOf(b) String.valueOf(a) String.valueOf String a String.valueOf(b) String.valueOf String b boolean can = false; can false for (int i = 1; i <= 10000; i++) {
			if (c == Math.pow(i, 2)) can = true;
		} int i = 1; int i = 1; i 1 i <= 10000 i 10000 i++ i++ i {
			if (c == Math.pow(i, 2)) can = true;
		} {
			if (c == Math.pow(i, 2)) can = true;
		} if (c == Math.pow(i, 2)) can = true; c == Math.pow(i, 2) c Math.pow(i, 2) Math.pow Math i 2 can = true can true if (can) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} can {
			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" sc.close() sc.close sc 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.valueOf(String.valueOf(a) + String.valueOf(b));

		boolean can = false;
		for (int i = 1; i <= 10000; i++) {
			if (c == Math.pow(i, 2)) can = true;
		}

		if (can) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}


		sc.close();
	}

} 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.valueOf(String.valueOf(a) + String.valueOf(b));

		boolean can = false;
		for (int i = 1; i <= 10000; i++) {
			if (c == Math.pow(i, 2)) can = true;
		}

		if (can) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}


		sc.close();
	}

} 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.valueOf(String.valueOf(a) + String.valueOf(b));

		boolean can = false;
		for (int i = 1; i <= 10000; i++) {
			if (c == Math.pow(i, 2)) can = true;
		}

		if (can) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}


		sc.close();
	}

}
