import java.util.*;
import static java.lang.System.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		B(sc);
	}
	
	public static void A(Scanner sc) {
		int a = sc.nextInt();
		int b = sc.nextInt();
		if((a*b)%2==1) out.println("Odd");
		else out.println("Even");
	}
	
	public static void B(Scanner sc) {
		String s1 = sc.next();
		String s2 = sc.next();
		int x = Integer.parseInt(s1+s2);
		for(int i=0;Math.pow(i,2)<=x;i++) {
			if(Math.pow(i, 2)==x) {
				out.println("Yes");
				return;
			}
		}
		out.println("No");
	}
} import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		B(sc);
	}
	
	public static void A(Scanner sc) {
		int a = sc.nextInt();
		int b = sc.nextInt();
		if((a*b)%2==1) out.println("Odd");
		else out.println("Even");
	}
	
	public static void B(Scanner sc) {
		String s1 = sc.next();
		String s2 = sc.next();
		int x = Integer.parseInt(s1+s2);
		for(int i=0;Math.pow(i,2)<=x;i++) {
			if(Math.pow(i, 2)==x) {
				out.println("Yes");
				return;
			}
		}
		out.println("No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		B(sc);
	} main {
		Scanner sc = new Scanner(System.in);
		B(sc);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) B(sc) B sc String[] args args public static void A(Scanner sc) {
		int a = sc.nextInt();
		int b = sc.nextInt();
		if((a*b)%2==1) out.println("Odd");
		else out.println("Even");
	} A {
		int a = sc.nextInt();
		int b = sc.nextInt();
		if((a*b)%2==1) out.println("Odd");
		else out.println("Even");
	} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc if((a*b)%2==1) out.println("Odd");
		else out.println("Even"); (a*b)%2==1 (a*b)%2 (a*b) a b 2 1 out.println("Odd") out.println out "Odd" out.println("Even") out.println out "Even" Scanner sc sc public static void B(Scanner sc) {
		String s1 = sc.next();
		String s2 = sc.next();
		int x = Integer.parseInt(s1+s2);
		for(int i=0;Math.pow(i,2)<=x;i++) {
			if(Math.pow(i, 2)==x) {
				out.println("Yes");
				return;
			}
		}
		out.println("No");
	} B {
		String s1 = sc.next();
		String s2 = sc.next();
		int x = Integer.parseInt(s1+s2);
		for(int i=0;Math.pow(i,2)<=x;i++) {
			if(Math.pow(i, 2)==x) {
				out.println("Yes");
				return;
			}
		}
		out.println("No");
	} String s1 = sc.next(); s1 sc.next() sc.next sc String s2 = sc.next(); s2 sc.next() sc.next sc int x = Integer.parseInt(s1+s2); x Integer.parseInt(s1+s2) Integer.parseInt Integer s1+s2 s1 s2 for(int i=0;Math.pow(i,2)<=x;i++) {
			if(Math.pow(i, 2)==x) {
				out.println("Yes");
				return;
			}
		} int i=0; int i=0; i 0 Math.pow(i,2)<=x Math.pow(i,2) Math.pow Math i 2 x i++ i++ i {
			if(Math.pow(i, 2)==x) {
				out.println("Yes");
				return;
			}
		} {
			if(Math.pow(i, 2)==x) {
				out.println("Yes");
				return;
			}
		} if(Math.pow(i, 2)==x) {
				out.println("Yes");
				return;
			} Math.pow(i, 2)==x Math.pow(i, 2) Math.pow Math i 2 x {
				out.println("Yes");
				return;
			} out.println("Yes") out.println out "Yes" return; out.println("No") out.println out "No" Scanner sc sc public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		B(sc);
	}
	
	public static void A(Scanner sc) {
		int a = sc.nextInt();
		int b = sc.nextInt();
		if((a*b)%2==1) out.println("Odd");
		else out.println("Even");
	}
	
	public static void B(Scanner sc) {
		String s1 = sc.next();
		String s2 = sc.next();
		int x = Integer.parseInt(s1+s2);
		for(int i=0;Math.pow(i,2)<=x;i++) {
			if(Math.pow(i, 2)==x) {
				out.println("Yes");
				return;
			}
		}
		out.println("No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		B(sc);
	}
	
	public static void A(Scanner sc) {
		int a = sc.nextInt();
		int b = sc.nextInt();
		if((a*b)%2==1) out.println("Odd");
		else out.println("Even");
	}
	
	public static void B(Scanner sc) {
		String s1 = sc.next();
		String s2 = sc.next();
		int x = Integer.parseInt(s1+s2);
		for(int i=0;Math.pow(i,2)<=x;i++) {
			if(Math.pow(i, 2)==x) {
				out.println("Yes");
				return;
			}
		}
		out.println("No");
	}
} Main
import java.util.*;
import static java.lang.System.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		B(sc);
	}
	
	public static void A(Scanner sc) {
		int a = sc.nextInt();
		int b = sc.nextInt();
		if((a*b)%2==1) out.println("Odd");
		else out.println("Even");
	}
	
	public static void B(Scanner sc) {
		String s1 = sc.next();
		String s2 = sc.next();
		int x = Integer.parseInt(s1+s2);
		for(int i=0;Math.pow(i,2)<=x;i++) {
			if(Math.pow(i, 2)==x) {
				out.println("Yes");
				return;
			}
		}
		out.println("No");
	}
}