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

		for(int i = 1; i < 318; i++) {
			if(i*i == ab) {
				System.out.println("Yes");
				break;
			} else if(i*i > ab) {
				System.out.println("No");
				break;
			}
		}
	}
} 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 ab = Integer.parseInt(String.valueOf(a) + String.valueOf(b));

		for(int i = 1; i < 318; i++) {
			if(i*i == ab) {
				System.out.println("Yes");
				break;
			} else if(i*i > ab) {
				System.out.println("No");
				break;
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ab = Integer.parseInt(String.valueOf(a) + String.valueOf(b));

		for(int i = 1; i < 318; i++) {
			if(i*i == ab) {
				System.out.println("Yes");
				break;
			} else if(i*i > ab) {
				System.out.println("No");
				break;
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ab = Integer.parseInt(String.valueOf(a) + String.valueOf(b));

		for(int i = 1; i < 318; i++) {
			if(i*i == ab) {
				System.out.println("Yes");
				break;
			} else if(i*i > ab) {
				System.out.println("No");
				break;
			}
		}
	} 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 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 < 318; i++) {
			if(i*i == ab) {
				System.out.println("Yes");
				break;
			} else if(i*i > ab) {
				System.out.println("No");
				break;
			}
		} int i = 1; int i = 1; i 1 i < 318 i 318 i++ i++ i {
			if(i*i == ab) {
				System.out.println("Yes");
				break;
			} else if(i*i > ab) {
				System.out.println("No");
				break;
			}
		} {
			if(i*i == ab) {
				System.out.println("Yes");
				break;
			} else if(i*i > ab) {
				System.out.println("No");
				break;
			}
		} if(i*i == ab) {
				System.out.println("Yes");
				break;
			} else if(i*i > ab) {
				System.out.println("No");
				break;
			} i*i == ab i*i i i ab {
				System.out.println("Yes");
				break;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" break; if(i*i > ab) {
				System.out.println("No");
				break;
			} i*i > ab i*i i i ab {
				System.out.println("No");
				break;
			} System.out.println("No") System.out.println System.out System System.out "No" break; 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 ab = Integer.parseInt(String.valueOf(a) + String.valueOf(b));

		for(int i = 1; i < 318; i++) {
			if(i*i == ab) {
				System.out.println("Yes");
				break;
			} else if(i*i > ab) {
				System.out.println("No");
				break;
			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ab = Integer.parseInt(String.valueOf(a) + String.valueOf(b));

		for(int i = 1; i < 318; i++) {
			if(i*i == ab) {
				System.out.println("Yes");
				break;
			} else if(i*i > ab) {
				System.out.println("No");
				break;
			}
		}
	}
} 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 ab = Integer.parseInt(String.valueOf(a) + String.valueOf(b));

		for(int i = 1; i < 318; i++) {
			if(i*i == ab) {
				System.out.println("Yes");
				break;
			} else if(i*i > ab) {
				System.out.println("No");
				break;
			}
		}
	}
}