import java. util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = scan.next();
		String s = a +b;

		double i = Integer.parseInt(s);
		double sqr = Math.sqrt(i);
		int c = (int)sqr;

		if(c==sqr) {
			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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = scan.next();
		String s = a +b;

		double i = Integer.parseInt(s);
		double sqr = Math.sqrt(i);
		int c = (int)sqr;

		if(c==sqr) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}



	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = scan.next();
		String s = a +b;

		double i = Integer.parseInt(s);
		double sqr = Math.sqrt(i);
		int c = (int)sqr;

		if(c==sqr) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}



	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = scan.next();
		String s = a +b;

		double i = Integer.parseInt(s);
		double sqr = Math.sqrt(i);
		int c = (int)sqr;

		if(c==sqr) {
			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 s = a +b; s a +b a b double i = Integer.parseInt(s); i Integer.parseInt(s) Integer.parseInt Integer s double sqr = Math.sqrt(i); sqr Math.sqrt(i) Math.sqrt Math i int c = (int)sqr; c (int)sqr if(c==sqr) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} c==sqr c sqr {
			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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = scan.next();
		String s = a +b;

		double i = Integer.parseInt(s);
		double sqr = Math.sqrt(i);
		int c = (int)sqr;

		if(c==sqr) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}



	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = scan.next();
		String s = a +b;

		double i = Integer.parseInt(s);
		double sqr = Math.sqrt(i);
		int c = (int)sqr;

		if(c==sqr) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}



	}

} Main
import java. util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = scan.next();
		String s = a +b;

		double i = Integer.parseInt(s);
		double sqr = Math.sqrt(i);
		int c = (int)sqr;

		if(c==sqr) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}



	}

}
