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 = 1;
		if(b < 10) {
			c = 10*a +b;
		}else if(b < 100) {
			c = 100*a +b;
		}else {
			c = 1000*a +b;
		}
		int hantei = 0;
		for(int i=1; i<317; i++) {
			if(i*i == c) {
				hantei += 1;
			}
		}
		if(hantei > 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} 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 = 1;
		if(b < 10) {
			c = 10*a +b;
		}else if(b < 100) {
			c = 100*a +b;
		}else {
			c = 1000*a +b;
		}
		int hantei = 0;
		for(int i=1; i<317; i++) {
			if(i*i == c) {
				hantei += 1;
			}
		}
		if(hantei > 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

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

		int c = 1;
		if(b < 10) {
			c = 10*a +b;
		}else if(b < 100) {
			c = 100*a +b;
		}else {
			c = 1000*a +b;
		}
		int hantei = 0;
		for(int i=1; i<317; i++) {
			if(i*i == c) {
				hantei += 1;
			}
		}
		if(hantei > 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int c = 1;
		if(b < 10) {
			c = 10*a +b;
		}else if(b < 100) {
			c = 100*a +b;
		}else {
			c = 1000*a +b;
		}
		int hantei = 0;
		for(int i=1; i<317; i++) {
			if(i*i == c) {
				hantei += 1;
			}
		}
		if(hantei > 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} 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 = 1; c 1 if(b < 10) {
			c = 10*a +b;
		}else if(b < 100) {
			c = 100*a +b;
		}else {
			c = 1000*a +b;
		} b < 10 b 10 {
			c = 10*a +b;
		} c = 10*a +b c 10*a +b 10*a 10 a b if(b < 100) {
			c = 100*a +b;
		}else {
			c = 1000*a +b;
		} b < 100 b 100 {
			c = 100*a +b;
		} c = 100*a +b c 100*a +b 100*a 100 a b {
			c = 1000*a +b;
		} c = 1000*a +b c 1000*a +b 1000*a 1000 a b int hantei = 0; hantei 0 for(int i=1; i<317; i++) {
			if(i*i == c) {
				hantei += 1;
			}
		} int i=1; int i=1; i 1 i<317 i 317 i++ i++ i {
			if(i*i == c) {
				hantei += 1;
			}
		} {
			if(i*i == c) {
				hantei += 1;
			}
		} if(i*i == c) {
				hantei += 1;
			} i*i == c i*i i i c {
				hantei += 1;
			} hantei += 1 hantei 1 if(hantei > 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} hantei > 0 hantei 0 {
			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" 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 = 1;
		if(b < 10) {
			c = 10*a +b;
		}else if(b < 100) {
			c = 100*a +b;
		}else {
			c = 1000*a +b;
		}
		int hantei = 0;
		for(int i=1; i<317; i++) {
			if(i*i == c) {
				hantei += 1;
			}
		}
		if(hantei > 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} 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 = 1;
		if(b < 10) {
			c = 10*a +b;
		}else if(b < 100) {
			c = 100*a +b;
		}else {
			c = 1000*a +b;
		}
		int hantei = 0;
		for(int i=1; i<317; i++) {
			if(i*i == c) {
				hantei += 1;
			}
		}
		if(hantei > 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} 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 = 1;
		if(b < 10) {
			c = 10*a +b;
		}else if(b < 100) {
			c = 100*a +b;
		}else {
			c = 1000*a +b;
		}
		int hantei = 0;
		for(int i=1; i<317; i++) {
			if(i*i == c) {
				hantei += 1;
			}
		}
		if(hantei > 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

}
