import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
    
        Scanner sc = new Scanner(System.in);
        
        String a = sc.next();
        String b = sc.next();
        String num = a + b;
        int ab = Integer.parseInt(num);

        boolean state = false;
        for(int i = 0; i <= ab; i++){
            if(i*i == ab){
                state = true;
                break;
            }
        }
        System.out.println(state ? "Yes" :"No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
    
        Scanner sc = new Scanner(System.in);
        
        String a = sc.next();
        String b = sc.next();
        String num = a + b;
        int ab = Integer.parseInt(num);

        boolean state = false;
        for(int i = 0; i <= ab; i++){
            if(i*i == ab){
                state = true;
                break;
            }
        }
        System.out.println(state ? "Yes" :"No");
    }
} Main public static void main(String[] args) throws Exception {
    
        Scanner sc = new Scanner(System.in);
        
        String a = sc.next();
        String b = sc.next();
        String num = a + b;
        int ab = Integer.parseInt(num);

        boolean state = false;
        for(int i = 0; i <= ab; i++){
            if(i*i == ab){
                state = true;
                break;
            }
        }
        System.out.println(state ? "Yes" :"No");
    } main {
    
        Scanner sc = new Scanner(System.in);
        
        String a = sc.next();
        String b = sc.next();
        String num = a + b;
        int ab = Integer.parseInt(num);

        boolean state = false;
        for(int i = 0; i <= ab; i++){
            if(i*i == ab){
                state = true;
                break;
            }
        }
        System.out.println(state ? "Yes" :"No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc String num = a + b; num a + b a b int ab = Integer.parseInt(num); ab Integer.parseInt(num) Integer.parseInt Integer num boolean state = false; state false for(int i = 0; i <= ab; i++){
            if(i*i == ab){
                state = true;
                break;
            }
        } int i = 0; int i = 0; i 0 i <= ab i ab i++ i++ i {
            if(i*i == ab){
                state = true;
                break;
            }
        } {
            if(i*i == ab){
                state = true;
                break;
            }
        } if(i*i == ab){
                state = true;
                break;
            } i*i == ab i*i i i ab {
                state = true;
                break;
            } state = true state true break; System.out.println(state ? "Yes" :"No") System.out.println System.out System System.out state ? "Yes" :"No" state "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
    
        Scanner sc = new Scanner(System.in);
        
        String a = sc.next();
        String b = sc.next();
        String num = a + b;
        int ab = Integer.parseInt(num);

        boolean state = false;
        for(int i = 0; i <= ab; i++){
            if(i*i == ab){
                state = true;
                break;
            }
        }
        System.out.println(state ? "Yes" :"No");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
    
        Scanner sc = new Scanner(System.in);
        
        String a = sc.next();
        String b = sc.next();
        String num = a + b;
        int ab = Integer.parseInt(num);

        boolean state = false;
        for(int i = 0; i <= ab; i++){
            if(i*i == ab){
                state = true;
                break;
            }
        }
        System.out.println(state ? "Yes" :"No");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
    
        Scanner sc = new Scanner(System.in);
        
        String a = sc.next();
        String b = sc.next();
        String num = a + b;
        int ab = Integer.parseInt(num);

        boolean state = false;
        for(int i = 0; i <= ab; i++){
            if(i*i == ab){
                state = true;
                break;
            }
        }
        System.out.println(state ? "Yes" :"No");
    }
}
