import 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;
		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");
				return;
			}
		}
		System.out.println("No");
	}
} import java.util.*; util.* java 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;
		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");
				return;
			}
		}
		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;
		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");
				return;
			}
		}
		System.out.println("No");
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int n;
		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");
				return;
			}
		}
		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 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");
				return;
			}
		} 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");
				return;
			}
		} {
			if(i * i == n) {
				System.out.println("Yes");
				return;
			}
		} if(i * i == n) {
				System.out.println("Yes");
				return;
			} i * i == n i * i i i n {
				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 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int n;
		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");
				return;
			}
		}
		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;
		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");
				return;
			}
		}
		System.out.println("No");
	}
} Main
import 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;
		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");
				return;
			}
		}
		System.out.println("No");
	}
}
