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 c = a+b;
        
        long x = Integer.parseInt(c);
        
        long ans=0;
        for(int i=1;;i++){
            ans=i*i;
            
            if(ans==x){
                System.out.println("Yes");
                return;
            }else if(ans>x){
                System.out.println("No");
                return;
            }
        }
    }
} 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 c = a+b;
        
        long x = Integer.parseInt(c);
        
        long ans=0;
        for(int i=1;;i++){
            ans=i*i;
            
            if(ans==x){
                System.out.println("Yes");
                return;
            }else if(ans>x){
                System.out.println("No");
                return;
            }
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        
        String c = a+b;
        
        long x = Integer.parseInt(c);
        
        long ans=0;
        for(int i=1;;i++){
            ans=i*i;
            
            if(ans==x){
                System.out.println("Yes");
                return;
            }else if(ans>x){
                System.out.println("No");
                return;
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        
        String c = a+b;
        
        long x = Integer.parseInt(c);
        
        long ans=0;
        for(int i=1;;i++){
            ans=i*i;
            
            if(ans==x){
                System.out.println("Yes");
                return;
            }else if(ans>x){
                System.out.println("No");
                return;
            }
        }
    } 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 c = a+b; c a+b a b long x = Integer.parseInt(c); x Integer.parseInt(c) Integer.parseInt Integer c long ans=0; ans 0 for(int i=1;;i++){
            ans=i*i;
            
            if(ans==x){
                System.out.println("Yes");
                return;
            }else if(ans>x){
                System.out.println("No");
                return;
            }
        } int i=1; int i=1; i 1 i++ i++ i {
            ans=i*i;
            
            if(ans==x){
                System.out.println("Yes");
                return;
            }else if(ans>x){
                System.out.println("No");
                return;
            }
        } {
            ans=i*i;
            
            if(ans==x){
                System.out.println("Yes");
                return;
            }else if(ans>x){
                System.out.println("No");
                return;
            }
        } ans=i*i ans i*i i i if(ans==x){
                System.out.println("Yes");
                return;
            }else if(ans>x){
                System.out.println("No");
                return;
            } ans==x ans x {
                System.out.println("Yes");
                return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; if(ans>x){
                System.out.println("No");
                return;
            } ans>x ans x {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; 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 c = a+b;
        
        long x = Integer.parseInt(c);
        
        long ans=0;
        for(int i=1;;i++){
            ans=i*i;
            
            if(ans==x){
                System.out.println("Yes");
                return;
            }else if(ans>x){
                System.out.println("No");
                return;
            }
        }
    }
} 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 c = a+b;
        
        long x = Integer.parseInt(c);
        
        long ans=0;
        for(int i=1;;i++){
            ans=i*i;
            
            if(ans==x){
                System.out.println("Yes");
                return;
            }else if(ans>x){
                System.out.println("No");
                return;
            }
        }
    }
} 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 c = a+b;
        
        long x = Integer.parseInt(c);
        
        long ans=0;
        for(int i=1;;i++){
            ans=i*i;
            
            if(ans==x){
                System.out.println("Yes");
                return;
            }else if(ans>x){
                System.out.println("No");
                return;
            }
        }
    }
}
