import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int a, b;
        a = sc.nextInt();
        b = sc.nextInt();

        String strA, strB;
        strA = String.valueOf(a);
        strB = String.valueOf(b);

        String strCon = strA + strB;
//        System.out.println(strCon);

        //数字をつなげた数
        int con = Integer.parseInt(strCon);

        //平方数
        double conSqrt;
        conSqrt = Math.sqrt(con);

        //四捨五入
        conSqrt = Math.round(conSqrt);

        if(conSqrt * conSqrt == con){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int a, b;
        a = sc.nextInt();
        b = sc.nextInt();

        String strA, strB;
        strA = String.valueOf(a);
        strB = String.valueOf(b);

        String strCon = strA + strB;
//        System.out.println(strCon);

        //数字をつなげた数
        int con = Integer.parseInt(strCon);

        //平方数
        double conSqrt;
        conSqrt = Math.sqrt(con);

        //四捨五入
        conSqrt = Math.round(conSqrt);

        if(conSqrt * conSqrt == con){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int a, b;
        a = sc.nextInt();
        b = sc.nextInt();

        String strA, strB;
        strA = String.valueOf(a);
        strB = String.valueOf(b);

        String strCon = strA + strB;
//        System.out.println(strCon);

        //数字をつなげた数
        int con = Integer.parseInt(strCon);

        //平方数
        double conSqrt;
        conSqrt = Math.sqrt(con);

        //四捨五入
        conSqrt = Math.round(conSqrt);

        if(conSqrt * conSqrt == con){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    } main {
        Scanner sc = new Scanner(System.in);

        int a, b;
        a = sc.nextInt();
        b = sc.nextInt();

        String strA, strB;
        strA = String.valueOf(a);
        strB = String.valueOf(b);

        String strCon = strA + strB;
//        System.out.println(strCon);

        //数字をつなげた数
        int con = Integer.parseInt(strCon);

        //平方数
        double conSqrt;
        conSqrt = Math.sqrt(con);

        //四捨五入
        conSqrt = Math.round(conSqrt);

        if(conSqrt * conSqrt == con){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a a b; b a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc String strA strA strB; strB strA = String.valueOf(a) strA String.valueOf(a) String.valueOf String a strB = String.valueOf(b) strB String.valueOf(b) String.valueOf String b String strCon = strA + strB; strCon strA + strB strA strB int con = Integer.parseInt(strCon); con Integer.parseInt(strCon) Integer.parseInt Integer strCon double conSqrt; conSqrt conSqrt = Math.sqrt(con) conSqrt Math.sqrt(con) Math.sqrt Math con conSqrt = Math.round(conSqrt) conSqrt Math.round(conSqrt) Math.round Math conSqrt if(conSqrt * conSqrt == con){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        } conSqrt * conSqrt == con conSqrt * conSqrt conSqrt conSqrt con {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int a, b;
        a = sc.nextInt();
        b = sc.nextInt();

        String strA, strB;
        strA = String.valueOf(a);
        strB = String.valueOf(b);

        String strCon = strA + strB;
//        System.out.println(strCon);

        //数字をつなげた数
        int con = Integer.parseInt(strCon);

        //平方数
        double conSqrt;
        conSqrt = Math.sqrt(con);

        //四捨五入
        conSqrt = Math.round(conSqrt);

        if(conSqrt * conSqrt == con){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int a, b;
        a = sc.nextInt();
        b = sc.nextInt();

        String strA, strB;
        strA = String.valueOf(a);
        strB = String.valueOf(b);

        String strCon = strA + strB;
//        System.out.println(strCon);

        //数字をつなげた数
        int con = Integer.parseInt(strCon);

        //平方数
        double conSqrt;
        conSqrt = Math.sqrt(con);

        //四捨五入
        conSqrt = Math.round(conSqrt);

        if(conSqrt * conSqrt == con){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int a, b;
        a = sc.nextInt();
        b = sc.nextInt();

        String strA, strB;
        strA = String.valueOf(a);
        strB = String.valueOf(b);

        String strCon = strA + strB;
//        System.out.println(strCon);

        //数字をつなげた数
        int con = Integer.parseInt(strCon);

        //平方数
        double conSqrt;
        conSqrt = Math.sqrt(con);

        //四捨五入
        conSqrt = Math.round(conSqrt);

        if(conSqrt * conSqrt == con){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    }
}