import java.util.*;

public class Main {
    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
		int b = sc.nextInt();
      	if(b < 10) a = a * 10 + b;
        else if(b < 100) a = a * 100 + b;
      	else a = a * 1000 + b;
        System.out.println((int)Math.sqrt(a) * (int)Math.sqrt(a) == a ? "Yes" : "No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
		int b = sc.nextInt();
      	if(b < 10) a = a * 10 + b;
        else if(b < 100) a = a * 100 + b;
      	else a = a * 1000 + b;
        System.out.println((int)Math.sqrt(a) * (int)Math.sqrt(a) == a ? "Yes" : "No");
    }
} Main public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
		int b = sc.nextInt();
      	if(b < 10) a = a * 10 + b;
        else if(b < 100) a = a * 100 + b;
      	else a = a * 1000 + b;
        System.out.println((int)Math.sqrt(a) * (int)Math.sqrt(a) == a ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
		int b = sc.nextInt();
      	if(b < 10) a = a * 10 + b;
        else if(b < 100) a = a * 100 + b;
      	else a = a * 1000 + b;
        System.out.println((int)Math.sqrt(a) * (int)Math.sqrt(a) == a ? "Yes" : "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 if(b < 10) a = a * 10 + b;
        else if(b < 100) a = a * 100 + b;
      	else a = a * 1000 + b; b < 10 b 10 a = a * 10 + b a a * 10 + b a * 10 a 10 b if(b < 100) a = a * 100 + b;
      	else a = a * 1000 + b; b < 100 b 100 a = a * 100 + b a a * 100 + b a * 100 a 100 b a = a * 1000 + b a a * 1000 + b a * 1000 a 1000 b System.out.println((int)Math.sqrt(a) * (int)Math.sqrt(a) == a ? "Yes" : "No") System.out.println System.out System System.out (int)Math.sqrt(a) * (int)Math.sqrt(a) == a ? "Yes" : "No" (int)Math.sqrt(a) * (int)Math.sqrt(a) == a (int)Math.sqrt(a) * (int)Math.sqrt(a) (int)Math.sqrt(a) Math.sqrt Math a (int)Math.sqrt(a) Math.sqrt Math a a "Yes" "No" String args[] args public class Main {
    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
		int b = sc.nextInt();
      	if(b < 10) a = a * 10 + b;
        else if(b < 100) a = a * 100 + b;
      	else a = a * 1000 + b;
        System.out.println((int)Math.sqrt(a) * (int)Math.sqrt(a) == a ? "Yes" : "No");
    }
} public class Main {
    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
		int b = sc.nextInt();
      	if(b < 10) a = a * 10 + b;
        else if(b < 100) a = a * 100 + b;
      	else a = a * 1000 + b;
        System.out.println((int)Math.sqrt(a) * (int)Math.sqrt(a) == a ? "Yes" : "No");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
		int b = sc.nextInt();
      	if(b < 10) a = a * 10 + b;
        else if(b < 100) a = a * 100 + b;
      	else a = a * 1000 + b;
        System.out.println((int)Math.sqrt(a) * (int)Math.sqrt(a) == a ? "Yes" : "No");
    }
}
