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 nS = a+b;
		int n = Integer.parseInt(nS);
		double nh = Math.sqrt((double)n);
		if(nh-(int)nh==0) {
			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 nS = a+b;
		int n = Integer.parseInt(nS);
		double nh = Math.sqrt((double)n);
		if(nh-(int)nh==0) {
			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 nS = a+b;
		int n = Integer.parseInt(nS);
		double nh = Math.sqrt((double)n);
		if(nh-(int)nh==0) {
			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 nS = a+b;
		int n = Integer.parseInt(nS);
		double nh = Math.sqrt((double)n);
		if(nh-(int)nh==0) {
			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 nS = a+b; nS a+b a b int n = Integer.parseInt(nS); n Integer.parseInt(nS) Integer.parseInt Integer nS double nh = Math.sqrt((double)n); nh Math.sqrt((double)n) Math.sqrt Math (double)n if(nh-(int)nh==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} nh-(int)nh==0 nh-(int)nh nh (int)nh 0 {
			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 nS = a+b;
		int n = Integer.parseInt(nS);
		double nh = Math.sqrt((double)n);
		if(nh-(int)nh==0) {
			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 nS = a+b;
		int n = Integer.parseInt(nS);
		double nh = Math.sqrt((double)n);
		if(nh-(int)nh==0) {
			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 nS = a+b;
		int n = Integer.parseInt(nS);
		double nh = Math.sqrt((double)n);
		if(nh-(int)nh==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

}
