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

	}

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

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int x, y = 0;
		if (b != 100) {
			if (b / 10 == 0) {
				x = a * 10 + b;
			} else {
				x = a * 100 + b;
			}
		} else {
			x = a * 1000 + b;
		}
		for (int i = 0; i * i <= x; i++) {
			if (i * i == x) {
				System.out.println("Yes");
				y = 1;
				break;
			}
		}
		if (y == 0) {
			System.out.println("No");
		}
		sc.close();

	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int x, y = 0;
		if (b != 100) {
			if (b / 10 == 0) {
				x = a * 10 + b;
			} else {
				x = a * 100 + b;
			}
		} else {
			x = a * 1000 + b;
		}
		for (int i = 0; i * i <= x; i++) {
			if (i * i == x) {
				System.out.println("Yes");
				y = 1;
				break;
			}
		}
		if (y == 0) {
			System.out.println("No");
		}
		sc.close();

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

	}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int x, y = 0;
		if (b != 100) {
			if (b / 10 == 0) {
				x = a * 10 + b;
			} else {
				x = a * 100 + b;
			}
		} else {
			x = a * 1000 + b;
		}
		for (int i = 0; i * i <= x; i++) {
			if (i * i == x) {
				System.out.println("Yes");
				y = 1;
				break;
			}
		}
		if (y == 0) {
			System.out.println("No");
		}
		sc.close();

	}

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

	}

}