import java.util.*;
import java.lang.*;

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

class Main {
    
    public static void main(String[] areg) {
        Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();
        
        int num = 0;
        if (b < 10)
            num = a * 10 + b;
        if (b >= 10 && b < 100)
            num = a * 100 + b;
        if (b == 100)
            num = a * 1000 + b;
        
        double sqrt = Math.sqrt(num);
        
        System.out.println((sqrt - Math.floor(sqrt) == 0) ? "Yes" : "No");
    }
}