import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int n = Integer.parseInt(a + "" + b);
		double d = Math.sqrt(n);
		int i = (int)d;
		String message = "No";
		if(i == d) {
			message = "Yes";
		}
		System.out.println(message);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int n = Integer.parseInt(a + "" + b);
		double d = Math.sqrt(n);
		int i = (int)d;
		String message = "No";
		if(i == d) {
			message = "Yes";
		}
		System.out.println(message);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int n = Integer.parseInt(a + "" + b);
		double d = Math.sqrt(n);
		int i = (int)d;
		String message = "No";
		if(i == d) {
			message = "Yes";
		}
		System.out.println(message);
	} main {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int n = Integer.parseInt(a + "" + b);
		double d = Math.sqrt(n);
		int i = (int)d;
		String message = "No";
		if(i == d) {
			message = "Yes";
		}
		System.out.println(message);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int n = Integer.parseInt(a + "" + b); n Integer.parseInt(a + "" + b) Integer.parseInt Integer a + "" + b a + "" + b a "" b double d = Math.sqrt(n); d Math.sqrt(n) Math.sqrt Math n int i = (int)d; i (int)d String message = "No"; message "No" if(i == d) {
			message = "Yes";
		} i == d i d {
			message = "Yes";
		} message = "Yes" message "Yes" System.out.println(message) System.out.println System.out System System.out message String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int n = Integer.parseInt(a + "" + b);
		double d = Math.sqrt(n);
		int i = (int)d;
		String message = "No";
		if(i == d) {
			message = "Yes";
		}
		System.out.println(message);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int n = Integer.parseInt(a + "" + b);
		double d = Math.sqrt(n);
		int i = (int)d;
		String message = "No";
		if(i == d) {
			message = "Yes";
		}
		System.out.println(message);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int n = Integer.parseInt(a + "" + b);
		double d = Math.sqrt(n);
		int i = (int)d;
		String message = "No";
		if(i == d) {
			message = "Yes";
		}
		System.out.println(message);
	}
}