import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        double x = 0;
        String ans = "Yes";

        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        x = Double.parseDouble((a + b));

        if (Math.sqrt(x) % 1 != 0) {
            ans = "No";
        }
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {

        double x = 0;
        String ans = "Yes";

        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        x = Double.parseDouble((a + b));

        if (Math.sqrt(x) % 1 != 0) {
            ans = "No";
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {

        double x = 0;
        String ans = "Yes";

        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        x = Double.parseDouble((a + b));

        if (Math.sqrt(x) % 1 != 0) {
            ans = "No";
        }
        System.out.println(ans);
    } main {

        double x = 0;
        String ans = "Yes";

        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        x = Double.parseDouble((a + b));

        if (Math.sqrt(x) % 1 != 0) {
            ans = "No";
        }
        System.out.println(ans);
    } double x = 0; x 0 String ans = "Yes"; ans "Yes" 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 x = Double.parseDouble((a + b)) x Double.parseDouble((a + b)) Double.parseDouble Double (a + b) a b if (Math.sqrt(x) % 1 != 0) {
            ans = "No";
        } Math.sqrt(x) % 1 != 0 Math.sqrt(x) % 1 Math.sqrt(x) Math.sqrt Math x 1 0 {
            ans = "No";
        } ans = "No" ans "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) {

        double x = 0;
        String ans = "Yes";

        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        x = Double.parseDouble((a + b));

        if (Math.sqrt(x) % 1 != 0) {
            ans = "No";
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) {

        double x = 0;
        String ans = "Yes";

        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        x = Double.parseDouble((a + b));

        if (Math.sqrt(x) % 1 != 0) {
            ans = "No";
        }
        System.out.println(ans);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        double x = 0;
        String ans = "Yes";

        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        x = Double.parseDouble((a + b));

        if (Math.sqrt(x) % 1 != 0) {
            ans = "No";
        }
        System.out.println(ans);
    }
}
