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 h = 1;
        int bLen = String.valueOf(b).length();
        for (int i=0 ; i<bLen ; i++) {
            h = h*10;
        }
        int ab = (a*h)+b;
        double lootb = Math.sqrt(ab);
        int lb = (int) (lootb);
        if(lb*lb==ab) 
        	System.out.println("Yes");
        else
        	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 h = 1;
        int bLen = String.valueOf(b).length();
        for (int i=0 ; i<bLen ; i++) {
            h = h*10;
        }
        int ab = (a*h)+b;
        double lootb = Math.sqrt(ab);
        int lb = (int) (lootb);
        if(lb*lb==ab) 
        	System.out.println("Yes");
        else
        	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 h = 1;
        int bLen = String.valueOf(b).length();
        for (int i=0 ; i<bLen ; i++) {
            h = h*10;
        }
        int ab = (a*h)+b;
        double lootb = Math.sqrt(ab);
        int lb = (int) (lootb);
        if(lb*lb==ab) 
        	System.out.println("Yes");
        else
        	System.out.println("No");
	} main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int h = 1;
        int bLen = String.valueOf(b).length();
        for (int i=0 ; i<bLen ; i++) {
            h = h*10;
        }
        int ab = (a*h)+b;
        double lootb = Math.sqrt(ab);
        int lb = (int) (lootb);
        if(lb*lb==ab) 
        	System.out.println("Yes");
        else
        	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 h = 1; h 1 int bLen = String.valueOf(b).length(); bLen String.valueOf(b).length() String.valueOf(b).length String.valueOf(b) String.valueOf String b for (int i=0 ; i<bLen ; i++) {
            h = h*10;
        } int i=0 ; int i=0 ; i 0 i<bLen i bLen i++ i++ i {
            h = h*10;
        } {
            h = h*10;
        } h = h*10 h h*10 h 10 int ab = (a*h)+b; ab (a*h)+b (a*h) a h b double lootb = Math.sqrt(ab); lootb Math.sqrt(ab) Math.sqrt Math ab int lb = (int) (lootb); lb (int) (lootb) if(lb*lb==ab) 
        	System.out.println("Yes");
        else
        	System.out.println("No"); lb*lb==ab lb*lb lb lb ab 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
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 h = 1;
        int bLen = String.valueOf(b).length();
        for (int i=0 ; i<bLen ; i++) {
            h = h*10;
        }
        int ab = (a*h)+b;
        double lootb = Math.sqrt(ab);
        int lb = (int) (lootb);
        if(lb*lb==ab) 
        	System.out.println("Yes");
        else
        	System.out.println("No");
	}
}