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 n, sw=0;
		if(b != 100) {
			if(b/10 == 0) {
				n = a*10+b;
			} else {
				n = a*100+b;
			}
		} else {
			n = a*1000+b;
		}
		for(int i = 1; i*i <= n; i++) {
			if(i*i == n) {
				System.out.println("Yes");
				sw = 1;
				break;
			}
		}
		if(sw == 0)	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 n, sw=0;
		if(b != 100) {
			if(b/10 == 0) {
				n = a*10+b;
			} else {
				n = a*100+b;
			}
		} else {
			n = a*1000+b;
		}
		for(int i = 1; i*i <= n; i++) {
			if(i*i == n) {
				System.out.println("Yes");
				sw = 1;
				break;
			}
		}
		if(sw == 0)	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 n, sw=0;
		if(b != 100) {
			if(b/10 == 0) {
				n = a*10+b;
			} else {
				n = a*100+b;
			}
		} else {
			n = a*1000+b;
		}
		for(int i = 1; i*i <= n; i++) {
			if(i*i == n) {
				System.out.println("Yes");
				sw = 1;
				break;
			}
		}
		if(sw == 0)	System.out.println("No");
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(); 
		int b = sc.nextInt(); 
		int n, sw=0;
		if(b != 100) {
			if(b/10 == 0) {
				n = a*10+b;
			} else {
				n = a*100+b;
			}
		} else {
			n = a*1000+b;
		}
		for(int i = 1; i*i <= n; i++) {
			if(i*i == n) {
				System.out.println("Yes");
				sw = 1;
				break;
			}
		}
		if(sw == 0)	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 n n sw=0; sw 0 if(b != 100) {
			if(b/10 == 0) {
				n = a*10+b;
			} else {
				n = a*100+b;
			}
		} else {
			n = a*1000+b;
		} b != 100 b 100 {
			if(b/10 == 0) {
				n = a*10+b;
			} else {
				n = a*100+b;
			}
		} if(b/10 == 0) {
				n = a*10+b;
			} else {
				n = a*100+b;
			} b/10 == 0 b/10 b 10 0 {
				n = a*10+b;
			} n = a*10+b n a*10+b a*10 a 10 b {
				n = a*100+b;
			} n = a*100+b n a*100+b a*100 a 100 b {
			n = a*1000+b;
		} n = a*1000+b n a*1000+b a*1000 a 1000 b for(int i = 1; i*i <= n; i++) {
			if(i*i == n) {
				System.out.println("Yes");
				sw = 1;
				break;
			}
		} int i = 1; int i = 1; i 1 i*i <= n i*i i i n i++ i++ i {
			if(i*i == n) {
				System.out.println("Yes");
				sw = 1;
				break;
			}
		} {
			if(i*i == n) {
				System.out.println("Yes");
				sw = 1;
				break;
			}
		} if(i*i == n) {
				System.out.println("Yes");
				sw = 1;
				break;
			} i*i == n i*i i i n {
				System.out.println("Yes");
				sw = 1;
				break;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" sw = 1 sw 1 break; if(sw == 0)	System.out.println("No"); sw == 0 sw 0 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 n, sw=0;
		if(b != 100) {
			if(b/10 == 0) {
				n = a*10+b;
			} else {
				n = a*100+b;
			}
		} else {
			n = a*1000+b;
		}
		for(int i = 1; i*i <= n; i++) {
			if(i*i == n) {
				System.out.println("Yes");
				sw = 1;
				break;
			}
		}
		if(sw == 0)	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 n, sw=0;
		if(b != 100) {
			if(b/10 == 0) {
				n = a*10+b;
			} else {
				n = a*100+b;
			}
		} else {
			n = a*1000+b;
		}
		for(int i = 1; i*i <= n; i++) {
			if(i*i == n) {
				System.out.println("Yes");
				sw = 1;
				break;
			}
		}
		if(sw == 0)	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 n, sw=0;
		if(b != 100) {
			if(b/10 == 0) {
				n = a*10+b;
			} else {
				n = a*100+b;
			}
		} else {
			n = a*1000+b;
		}
		for(int i = 1; i*i <= n; i++) {
			if(i*i == n) {
				System.out.println("Yes");
				sw = 1;
				break;
			}
		}
		if(sw == 0)	System.out.println("No");
	}
}