import java.util.*;
import java.util.stream.Stream;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String a = sc.next(), b = sc.next();
        String str = a + b;
        int num = Integer.parseInt(str);
        int result = (int)Math.sqrt(num);
        String ans;
        ans = (result*result) == num ? "Yes" : "No"; 
        System.out.println(ans);

    }
} import java.util.*; util.* java import java.util.stream.Stream; Stream java.util.stream public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String a = sc.next(), b = sc.next();
        String str = a + b;
        int num = Integer.parseInt(str);
        int result = (int)Math.sqrt(num);
        String ans;
        ans = (result*result) == num ? "Yes" : "No"; 
        System.out.println(ans);

    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String a = sc.next(), b = sc.next();
        String str = a + b;
        int num = Integer.parseInt(str);
        int result = (int)Math.sqrt(num);
        String ans;
        ans = (result*result) == num ? "Yes" : "No"; 
        System.out.println(ans);

    } main {
        
        Scanner sc = new Scanner(System.in);
        String a = sc.next(), b = sc.next();
        String str = a + b;
        int num = Integer.parseInt(str);
        int result = (int)Math.sqrt(num);
        String ans;
        ans = (result*result) == num ? "Yes" : "No"; 
        System.out.println(ans);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next() a sc.next() sc.next sc b = sc.next(); b sc.next() sc.next sc String str = a + b; str a + b a b int num = Integer.parseInt(str); num Integer.parseInt(str) Integer.parseInt Integer str int result = (int)Math.sqrt(num); result (int)Math.sqrt(num) Math.sqrt Math num String ans; ans ans = (result*result) == num ? "Yes" : "No" ans (result*result) == num ? "Yes" : "No" (result*result) == num (result*result) result result num "Yes" "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String a = sc.next(), b = sc.next();
        String str = a + b;
        int num = Integer.parseInt(str);
        int result = (int)Math.sqrt(num);
        String ans;
        ans = (result*result) == num ? "Yes" : "No"; 
        System.out.println(ans);

    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String a = sc.next(), b = sc.next();
        String str = a + b;
        int num = Integer.parseInt(str);
        int result = (int)Math.sqrt(num);
        String ans;
        ans = (result*result) == num ? "Yes" : "No"; 
        System.out.println(ans);

    }
} Main
import java.util.*;
import java.util.stream.Stream;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String a = sc.next(), b = sc.next();
        String str = a + b;
        int num = Integer.parseInt(str);
        int result = (int)Math.sqrt(num);
        String ans;
        ans = (result*result) == num ? "Yes" : "No"; 
        System.out.println(ans);

    }
}
