import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String c = a + b;
		int n = Integer.parseInt(c);
		boolean f = false;
		for (int i = 0; i < n; i++) {
			if (i*i == n) {
				f = true;
				break;
			}
		}
		if (f) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String c = a + b;
		int n = Integer.parseInt(c);
		boolean f = false;
		for (int i = 0; i < n; i++) {
			if (i*i == n) {
				f = true;
				break;
			}
		}
		if (f) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String c = a + b;
		int n = Integer.parseInt(c);
		boolean f = false;
		for (int i = 0; i < n; i++) {
			if (i*i == n) {
				f = true;
				break;
			}
		}
		if (f) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String c = a + b;
		int n = Integer.parseInt(c);
		boolean f = false;
		for (int i = 0; i < n; i++) {
			if (i*i == n) {
				f = true;
				break;
			}
		}
		if (f) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String a = scan.next(); a scan.next() scan.next scan String b = scan.next(); b scan.next() scan.next scan String c = a + b; c a + b a b int n = Integer.parseInt(c); n Integer.parseInt(c) Integer.parseInt Integer c boolean f = false; f false for (int i = 0; i < n; i++) {
			if (i*i == n) {
				f = true;
				break;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			if (i*i == n) {
				f = true;
				break;
			}
		} {
			if (i*i == n) {
				f = true;
				break;
			}
		} if (i*i == n) {
				f = true;
				break;
			} i*i == n i*i i i n {
				f = true;
				break;
			} f = true f true break; if (f) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} f {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} 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 scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String c = a + b;
		int n = Integer.parseInt(c);
		boolean f = false;
		for (int i = 0; i < n; i++) {
			if (i*i == n) {
				f = true;
				break;
			}
		}
		if (f) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String c = a + b;
		int n = Integer.parseInt(c);
		boolean f = false;
		for (int i = 0; i < n; i++) {
			if (i*i == n) {
				f = true;
				break;
			}
		}
		if (f) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String c = a + b;
		int n = Integer.parseInt(c);
		boolean f = false;
		for (int i = 0; i < n; i++) {
			if (i*i == n) {
				f = true;
				break;
			}
		}
		if (f) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}
