import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int ab = Integer.parseInt(String.valueOf(a) + String.valueOf(b));

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

		System.out.println("No");

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

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int ab = Integer.parseInt(String.valueOf(a) + String.valueOf(b));

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

		System.out.println("No");

	}
} Main @SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int ab = Integer.parseInt(String.valueOf(a) + String.valueOf(b));

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

		System.out.println("No");

	} main {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int ab = Integer.parseInt(String.valueOf(a) + String.valueOf(b));

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

		System.out.println("No");

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int ab = Integer.parseInt(String.valueOf(a) + String.valueOf(b)); ab Integer.parseInt(String.valueOf(a) + String.valueOf(b)) Integer.parseInt Integer String.valueOf(a) + String.valueOf(b) String.valueOf(a) String.valueOf String a String.valueOf(b) String.valueOf String b for (int i = 1; i <= ab; i++) {
			if (i * i == ab) {
				System.out.println("Yes");
				return;
			}
		} int i = 1; int i = 1; i 1 i <= ab i ab i++ i++ i {
			if (i * i == ab) {
				System.out.println("Yes");
				return;
			}
		} {
			if (i * i == ab) {
				System.out.println("Yes");
				return;
			}
		} if (i * i == ab) {
				System.out.println("Yes");
				return;
			} i * i == ab i * i i i ab {
				System.out.println("Yes");
				return;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" String args[] args public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int ab = Integer.parseInt(String.valueOf(a) + String.valueOf(b));

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

		System.out.println("No");

	}
} public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int ab = Integer.parseInt(String.valueOf(a) + String.valueOf(b));

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

		System.out.println("No");

	}
} Main
import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int ab = Integer.parseInt(String.valueOf(a) + String.valueOf(b));

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

		System.out.println("No");

	}
}
