import java.util.Scanner;
public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int c=b;
		for(int i=0;;i++) {
			if(c!=0) {
			a*=10;
			}
			else {
				break;
			}
			c/=10;
		}double d=0;
		int e=a+b;
		d=Math.sqrt(e);
		if(d==(int)d) {
			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) throws Exception{
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int c=b;
		for(int i=0;;i++) {
			if(c!=0) {
			a*=10;
			}
			else {
				break;
			}
			c/=10;
		}double d=0;
		int e=a+b;
		d=Math.sqrt(e);
		if(d==(int)d) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) throws Exception{
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int c=b;
		for(int i=0;;i++) {
			if(c!=0) {
			a*=10;
			}
			else {
				break;
			}
			c/=10;
		}double d=0;
		int e=a+b;
		d=Math.sqrt(e);
		if(d==(int)d) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	} main {
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int c=b;
		for(int i=0;;i++) {
			if(c!=0) {
			a*=10;
			}
			else {
				break;
			}
			c/=10;
		}double d=0;
		int e=a+b;
		d=Math.sqrt(e);
		if(d==(int)d) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	} 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 c=b; c b for(int i=0;;i++) {
			if(c!=0) {
			a*=10;
			}
			else {
				break;
			}
			c/=10;
		} int i=0; int i=0; i 0 i++ i++ i {
			if(c!=0) {
			a*=10;
			}
			else {
				break;
			}
			c/=10;
		} {
			if(c!=0) {
			a*=10;
			}
			else {
				break;
			}
			c/=10;
		} if(c!=0) {
			a*=10;
			}
			else {
				break;
			} c!=0 c 0 {
			a*=10;
			} a*=10 a 10 {
				break;
			} break; c/=10 c 10 double d=0; d 0 int e=a+b; e a+b a b d=Math.sqrt(e) d Math.sqrt(e) Math.sqrt Math e if(d==(int)d) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		} d==(int)d d (int)d {
			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) throws Exception{
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int c=b;
		for(int i=0;;i++) {
			if(c!=0) {
			a*=10;
			}
			else {
				break;
			}
			c/=10;
		}double d=0;
		int e=a+b;
		d=Math.sqrt(e);
		if(d==(int)d) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}
} public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int c=b;
		for(int i=0;;i++) {
			if(c!=0) {
			a*=10;
			}
			else {
				break;
			}
			c/=10;
		}double d=0;
		int e=a+b;
		d=Math.sqrt(e);
		if(d==(int)d) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int c=b;
		for(int i=0;;i++) {
			if(c!=0) {
			a*=10;
			}
			else {
				break;
			}
			c/=10;
		}double d=0;
		int e=a+b;
		d=Math.sqrt(e);
		if(d==(int)d) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}
}