import java.util.Scanner;
class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        String a = scn.next();
        String b = scn.next();
        String answer = "No";
        int num=Integer.parseInt(a+b);
        for(int i=1;i*i<=num;i++){
            if(num==i*i){
                answer = "Yes";
                break;
            }
        }
        System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        String a = scn.next();
        String b = scn.next();
        String answer = "No";
        int num=Integer.parseInt(a+b);
        for(int i=1;i*i<=num;i++){
            if(num==i*i){
                answer = "Yes";
                break;
            }
        }
        System.out.println(answer);
    }
} Main public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        String a = scn.next();
        String b = scn.next();
        String answer = "No";
        int num=Integer.parseInt(a+b);
        for(int i=1;i*i<=num;i++){
            if(num==i*i){
                answer = "Yes";
                break;
            }
        }
        System.out.println(answer);
    } main {
        Scanner scn=new Scanner(System.in);
        String a = scn.next();
        String b = scn.next();
        String answer = "No";
        int num=Integer.parseInt(a+b);
        for(int i=1;i*i<=num;i++){
            if(num==i*i){
                answer = "Yes";
                break;
            }
        }
        System.out.println(answer);
    } Scanner scn=new Scanner(System.in); scn new Scanner(System.in) String a = scn.next(); a scn.next() scn.next scn String b = scn.next(); b scn.next() scn.next scn String answer = "No"; answer "No" int num=Integer.parseInt(a+b); num Integer.parseInt(a+b) Integer.parseInt Integer a+b a b for(int i=1;i*i<=num;i++){
            if(num==i*i){
                answer = "Yes";
                break;
            }
        } int i=1; int i=1; i 1 i*i<=num i*i i i num i++ i++ i {
            if(num==i*i){
                answer = "Yes";
                break;
            }
        } {
            if(num==i*i){
                answer = "Yes";
                break;
            }
        } if(num==i*i){
                answer = "Yes";
                break;
            } num==i*i num i*i i i {
                answer = "Yes";
                break;
            } answer = "Yes" answer "Yes" break; System.out.println(answer) System.out.println System.out System System.out answer String[] args args
import java.util.Scanner;
class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        String a = scn.next();
        String b = scn.next();
        String answer = "No";
        int num=Integer.parseInt(a+b);
        for(int i=1;i*i<=num;i++){
            if(num==i*i){
                answer = "Yes";
                break;
            }
        }
        System.out.println(answer);
    }
}
