import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        String AB = String.valueOf(a) + String.valueOf(b);
        double ab = Double.parseDouble(AB);

        //平方数を求める
        int square =(int) Math.sqrt(ab);

        //2乗して元の数に戻るか確認
        int conf = square * square;

        String judge = (int)ab == conf ? "Yes" : "No";
        System.out.println(judge);
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        String AB = String.valueOf(a) + String.valueOf(b);
        double ab = Double.parseDouble(AB);

        //平方数を求める
        int square =(int) Math.sqrt(ab);

        //2乗して元の数に戻るか確認
        int conf = square * square;

        String judge = (int)ab == conf ? "Yes" : "No";
        System.out.println(judge);
    }

} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        String AB = String.valueOf(a) + String.valueOf(b);
        double ab = Double.parseDouble(AB);

        //平方数を求める
        int square =(int) Math.sqrt(ab);

        //2乗して元の数に戻るか確認
        int conf = square * square;

        String judge = (int)ab == conf ? "Yes" : "No";
        System.out.println(judge);
    } main {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        String AB = String.valueOf(a) + String.valueOf(b);
        double ab = Double.parseDouble(AB);

        //平方数を求める
        int square =(int) Math.sqrt(ab);

        //2乗して元の数に戻るか確認
        int conf = square * square;

        String judge = (int)ab == conf ? "Yes" : "No";
        System.out.println(judge);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner String AB = String.valueOf(a) + String.valueOf(b); AB String.valueOf(a) + String.valueOf(b) String.valueOf(a) String.valueOf String a String.valueOf(b) String.valueOf String b double ab = Double.parseDouble(AB); ab Double.parseDouble(AB) Double.parseDouble Double AB int square =(int) Math.sqrt(ab); square (int) Math.sqrt(ab) Math.sqrt Math ab int conf = square * square; conf square * square square square String judge = (int)ab == conf ? "Yes" : "No"; judge (int)ab == conf ? "Yes" : "No" (int)ab == conf (int)ab conf "Yes" "No" System.out.println(judge) System.out.println System.out System System.out judge String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        String AB = String.valueOf(a) + String.valueOf(b);
        double ab = Double.parseDouble(AB);

        //平方数を求める
        int square =(int) Math.sqrt(ab);

        //2乗して元の数に戻るか確認
        int conf = square * square;

        String judge = (int)ab == conf ? "Yes" : "No";
        System.out.println(judge);
    }

} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        String AB = String.valueOf(a) + String.valueOf(b);
        double ab = Double.parseDouble(AB);

        //平方数を求める
        int square =(int) Math.sqrt(ab);

        //2乗して元の数に戻るか確認
        int conf = square * square;

        String judge = (int)ab == conf ? "Yes" : "No";
        System.out.println(judge);
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        String AB = String.valueOf(a) + String.valueOf(b);
        double ab = Double.parseDouble(AB);

        //平方数を求める
        int square =(int) Math.sqrt(ab);

        //2乗して元の数に戻るか確認
        int conf = square * square;

        String judge = (int)ab == conf ? "Yes" : "No";
        System.out.println(judge);
    }

}