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 c = Integer.parseInt(a+""+b);
		int d = (int) Math.sqrt(c);
		if (d*d == c) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		sc.close();
	}

} 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 c = Integer.parseInt(a+""+b);
		int d = (int) Math.sqrt(c);
		if (d*d == c) {
			System.out.println("Yes");
		} else {
			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 c = Integer.parseInt(a+""+b);
		int d = (int) Math.sqrt(c);
		if (d*d == c) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = Integer.parseInt(a+""+b);
		int d = (int) Math.sqrt(c);
		if (d*d == c) {
			System.out.println("Yes");
		} else {
			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 c = Integer.parseInt(a+""+b); c Integer.parseInt(a+""+b) Integer.parseInt Integer a+""+b a+""+b a "" b int d = (int) Math.sqrt(c); d (int) Math.sqrt(c) Math.sqrt Math c if (d*d == c) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} d*d == c d*d d d c {
			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" 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 c = Integer.parseInt(a+""+b);
		int d = (int) Math.sqrt(c);
		if (d*d == c) {
			System.out.println("Yes");
		} else {
			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 c = Integer.parseInt(a+""+b);
		int d = (int) Math.sqrt(c);
		if (d*d == c) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		sc.close();
	}

} 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 c = Integer.parseInt(a+""+b);
		int d = (int) Math.sqrt(c);
		if (d*d == c) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		sc.close();
	}

}