import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//int a = sc.nextInt(), b = sc.nextInt(),c=sc.nextInt();
		//int x=sc.nextInt();//,k=sc.nextInt();
		long sum=0,count=0,flag=0,max=-999999,min=99999;
		//long[] array=new long[a];
		String s=sc.next(),t=sc.next();
		String buff;
		//String[] arrays = new String[a];
		count=Integer.parseInt(s+t);
		double g =Math.sqrt(count);
		sum=(int)g;
		if(g-sum==0)System.out.println("Yes");
		else System.out.println("No");



	}
	public static int sample(int n) {
		return n;
	}

} 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(), b = sc.nextInt(),c=sc.nextInt();
		//int x=sc.nextInt();//,k=sc.nextInt();
		long sum=0,count=0,flag=0,max=-999999,min=99999;
		//long[] array=new long[a];
		String s=sc.next(),t=sc.next();
		String buff;
		//String[] arrays = new String[a];
		count=Integer.parseInt(s+t);
		double g =Math.sqrt(count);
		sum=(int)g;
		if(g-sum==0)System.out.println("Yes");
		else System.out.println("No");



	}
	public static int sample(int n) {
		return n;
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//int a = sc.nextInt(), b = sc.nextInt(),c=sc.nextInt();
		//int x=sc.nextInt();//,k=sc.nextInt();
		long sum=0,count=0,flag=0,max=-999999,min=99999;
		//long[] array=new long[a];
		String s=sc.next(),t=sc.next();
		String buff;
		//String[] arrays = new String[a];
		count=Integer.parseInt(s+t);
		double g =Math.sqrt(count);
		sum=(int)g;
		if(g-sum==0)System.out.println("Yes");
		else System.out.println("No");



	} main {
		Scanner sc = new Scanner(System.in);
		//int a = sc.nextInt(), b = sc.nextInt(),c=sc.nextInt();
		//int x=sc.nextInt();//,k=sc.nextInt();
		long sum=0,count=0,flag=0,max=-999999,min=99999;
		//long[] array=new long[a];
		String s=sc.next(),t=sc.next();
		String buff;
		//String[] arrays = new String[a];
		count=Integer.parseInt(s+t);
		double g =Math.sqrt(count);
		sum=(int)g;
		if(g-sum==0)System.out.println("Yes");
		else System.out.println("No");



	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long sum=0 sum 0 count=0 count 0 flag=0 flag 0 max=-999999 max -999999 999999 min=99999; min 99999 String s=sc.next() s sc.next() sc.next sc t=sc.next(); t sc.next() sc.next sc String buff; buff count=Integer.parseInt(s+t) count Integer.parseInt(s+t) Integer.parseInt Integer s+t s t double g =Math.sqrt(count); g Math.sqrt(count) Math.sqrt Math count sum=(int)g sum (int)g if(g-sum==0)System.out.println("Yes");
		else System.out.println("No"); g-sum==0 g-sum g sum 0 System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args public static int sample(int n) {
		return n;
	} sample {
		return n;
	} return n; n int n n public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//int a = sc.nextInt(), b = sc.nextInt(),c=sc.nextInt();
		//int x=sc.nextInt();//,k=sc.nextInt();
		long sum=0,count=0,flag=0,max=-999999,min=99999;
		//long[] array=new long[a];
		String s=sc.next(),t=sc.next();
		String buff;
		//String[] arrays = new String[a];
		count=Integer.parseInt(s+t);
		double g =Math.sqrt(count);
		sum=(int)g;
		if(g-sum==0)System.out.println("Yes");
		else System.out.println("No");



	}
	public static int sample(int n) {
		return n;
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//int a = sc.nextInt(), b = sc.nextInt(),c=sc.nextInt();
		//int x=sc.nextInt();//,k=sc.nextInt();
		long sum=0,count=0,flag=0,max=-999999,min=99999;
		//long[] array=new long[a];
		String s=sc.next(),t=sc.next();
		String buff;
		//String[] arrays = new String[a];
		count=Integer.parseInt(s+t);
		double g =Math.sqrt(count);
		sum=(int)g;
		if(g-sum==0)System.out.println("Yes");
		else System.out.println("No");



	}
	public static int sample(int n) {
		return n;
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//int a = sc.nextInt(), b = sc.nextInt(),c=sc.nextInt();
		//int x=sc.nextInt();//,k=sc.nextInt();
		long sum=0,count=0,flag=0,max=-999999,min=99999;
		//long[] array=new long[a];
		String s=sc.next(),t=sc.next();
		String buff;
		//String[] arrays = new String[a];
		count=Integer.parseInt(s+t);
		double g =Math.sqrt(count);
		sum=(int)g;
		if(g-sum==0)System.out.println("Yes");
		else System.out.println("No");



	}
	public static int sample(int n) {
		return n;
	}

}
