import java.util.*;
class Main {
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int lnb = (int)Math.log10(b)+1;
	int num = a*(int)Math.pow(10,lnb) + b;
	for(int i = 1; i*i<=num; i++) {
	    if(i*i==num) {
		System.out.println("Yes");
		return;
	    }
	}
	System.out.println("No");
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int lnb = (int)Math.log10(b)+1;
	int num = a*(int)Math.pow(10,lnb) + b;
	for(int i = 1; i*i<=num; i++) {
	    if(i*i==num) {
		System.out.println("Yes");
		return;
	    }
	}
	System.out.println("No");
    }
} Main public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int lnb = (int)Math.log10(b)+1;
	int num = a*(int)Math.pow(10,lnb) + b;
	for(int i = 1; i*i<=num; i++) {
	    if(i*i==num) {
		System.out.println("Yes");
		return;
	    }
	}
	System.out.println("No");
    } main {
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int lnb = (int)Math.log10(b)+1;
	int num = a*(int)Math.pow(10,lnb) + b;
	for(int i = 1; i*i<=num; i++) {
	    if(i*i==num) {
		System.out.println("Yes");
		return;
	    }
	}
	System.out.println("No");
    } 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 lnb = (int)Math.log10(b)+1; lnb (int)Math.log10(b)+1 (int)Math.log10(b) Math.log10 Math b 1 int num = a*(int)Math.pow(10,lnb) + b; num a*(int)Math.pow(10,lnb) + b a*(int)Math.pow(10,lnb) a (int)Math.pow(10,lnb) Math.pow Math 10 lnb b for(int i = 1; i*i<=num; i++) {
	    if(i*i==num) {
		System.out.println("Yes");
		return;
	    }
	} int i = 1; int i = 1; i 1 i*i<=num i*i i i num i++ i++ i {
	    if(i*i==num) {
		System.out.println("Yes");
		return;
	    }
	} {
	    if(i*i==num) {
		System.out.println("Yes");
		return;
	    }
	} if(i*i==num) {
		System.out.println("Yes");
		return;
	    } i*i==num i*i i i num {
		System.out.println("Yes");
		return;
	    } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" String[] args args
import java.util.*;
class Main {
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int lnb = (int)Math.log10(b)+1;
	int num = a*(int)Math.pow(10,lnb) + b;
	for(int i = 1; i*i<=num; i++) {
	    if(i*i==num) {
		System.out.println("Yes");
		return;
	    }
	}
	System.out.println("No");
    }
}