import java.util.*;
import java.io.*;
public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String[] s = in.nextLine().split(" ");
        int num = new Integer(s[0] + s[1]);
        int sqrt = (int) Math.sqrt(num);
        sqrt *= sqrt;
        if (sqrt == num && num % sqrt == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String[] s = in.nextLine().split(" ");
        int num = new Integer(s[0] + s[1]);
        int sqrt = (int) Math.sqrt(num);
        sqrt *= sqrt;
        if (sqrt == num && num % sqrt == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String[] s = in.nextLine().split(" ");
        int num = new Integer(s[0] + s[1]);
        int sqrt = (int) Math.sqrt(num);
        sqrt *= sqrt;
        if (sqrt == num && num % sqrt == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String[] s = in.nextLine().split(" ");
        int num = new Integer(s[0] + s[1]);
        int sqrt = (int) Math.sqrt(num);
        sqrt *= sqrt;
        if (sqrt == num && num % sqrt == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) String[] s = in.nextLine().split(" "); s in.nextLine().split(" ") in.nextLine().split in.nextLine() in.nextLine in " " int num = new Integer(s[0] + s[1]); num new Integer(s[0] + s[1]) int sqrt = (int) Math.sqrt(num); sqrt (int) Math.sqrt(num) Math.sqrt Math num sqrt *= sqrt sqrt sqrt if (sqrt == num && num % sqrt == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } sqrt == num && num % sqrt == 0 sqrt == num sqrt num num % sqrt == 0 num % sqrt num sqrt 0 {
            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 in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String[] s = in.nextLine().split(" ");
        int num = new Integer(s[0] + s[1]);
        int sqrt = (int) Math.sqrt(num);
        sqrt *= sqrt;
        if (sqrt == num && num % sqrt == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String[] s = in.nextLine().split(" ");
        int num = new Integer(s[0] + s[1]);
        int sqrt = (int) Math.sqrt(num);
        sqrt *= sqrt;
        if (sqrt == num && num % sqrt == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main
import java.util.*;
import java.io.*;
public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String[] s = in.nextLine().split(" ");
        int num = new Integer(s[0] + s[1]);
        int sqrt = (int) Math.sqrt(num);
        sqrt *= sqrt;
        if (sqrt == num && num % sqrt == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}