import java.io.BufferedOutputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static PrintWriter out;

    public static void main(String[] args) {
        Main.run();
    }

    private static void run() {
        out = new PrintWriter(new BufferedOutputStream(System.out));
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        // aとbを結合
        StringBuilder sb = new StringBuilder();
        sb.append(a).append(b);
        double n = Double.parseDouble(sb.toString());
        out.println(Main.checksqrt(n));
        out.close();
        sc.close();
    }

    /**
     * 引数が平方数かどうか判定
     * @param pnum
     * @return 平方数の場合は"Yes"、それ以外は"No"
     */
    private static String checksqrt(double pnum) {
        // 引数の平方根を求める
        double n = Math.sqrt(pnum);
        // 引数を平方根で割った余りが0ならば平方数
        if (pnum % n == 0) {
            return "Yes";
        } else {
            return "No";
        }
    }

} import java.io.BufferedOutputStream; BufferedOutputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static PrintWriter out;

    public static void main(String[] args) {
        Main.run();
    }

    private static void run() {
        out = new PrintWriter(new BufferedOutputStream(System.out));
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        // aとbを結合
        StringBuilder sb = new StringBuilder();
        sb.append(a).append(b);
        double n = Double.parseDouble(sb.toString());
        out.println(Main.checksqrt(n));
        out.close();
        sc.close();
    }

    /**
     * 引数が平方数かどうか判定
     * @param pnum
     * @return 平方数の場合は"Yes"、それ以外は"No"
     */
    private static String checksqrt(double pnum) {
        // 引数の平方根を求める
        double n = Math.sqrt(pnum);
        // 引数を平方根で割った余りが0ならば平方数
        if (pnum % n == 0) {
            return "Yes";
        } else {
            return "No";
        }
    }

} Main public static PrintWriter out; out public static void main(String[] args) {
        Main.run();
    } main {
        Main.run();
    } Main.run() Main.run Main String[] args args private static void run() {
        out = new PrintWriter(new BufferedOutputStream(System.out));
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        // aとbを結合
        StringBuilder sb = new StringBuilder();
        sb.append(a).append(b);
        double n = Double.parseDouble(sb.toString());
        out.println(Main.checksqrt(n));
        out.close();
        sc.close();
    } run {
        out = new PrintWriter(new BufferedOutputStream(System.out));
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        // aとbを結合
        StringBuilder sb = new StringBuilder();
        sb.append(a).append(b);
        double n = Double.parseDouble(sb.toString());
        out.println(Main.checksqrt(n));
        out.close();
        sc.close();
    } out = new PrintWriter(new BufferedOutputStream(System.out)) out new PrintWriter(new BufferedOutputStream(System.out)) 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 StringBuilder sb = new StringBuilder(); sb new StringBuilder() sb.append(a).append(b) sb.append(a).append sb.append(a) sb.append sb a b double n = Double.parseDouble(sb.toString()); n Double.parseDouble(sb.toString()) Double.parseDouble Double sb.toString() sb.toString sb out.println(Main.checksqrt(n)) out.println out Main.checksqrt(n) Main.checksqrt Main n out.close() out.close out sc.close() sc.close sc /**
     * 引数が平方数かどうか判定
     * @param pnum
     * @return 平方数の場合は"Yes"、それ以外は"No"
     */
    private static String checksqrt(double pnum) {
        // 引数の平方根を求める
        double n = Math.sqrt(pnum);
        // 引数を平方根で割った余りが0ならば平方数
        if (pnum % n == 0) {
            return "Yes";
        } else {
            return "No";
        }
    } checksqrt {
        // 引数の平方根を求める
        double n = Math.sqrt(pnum);
        // 引数を平方根で割った余りが0ならば平方数
        if (pnum % n == 0) {
            return "Yes";
        } else {
            return "No";
        }
    } double n = Math.sqrt(pnum); n Math.sqrt(pnum) Math.sqrt Math pnum if (pnum % n == 0) {
            return "Yes";
        } else {
            return "No";
        } pnum % n == 0 pnum % n pnum n 0 {
            return "Yes";
        } return "Yes"; "Yes" {
            return "No";
        } return "No"; "No" double pnum pnum public class Main {
    public static PrintWriter out;

    public static void main(String[] args) {
        Main.run();
    }

    private static void run() {
        out = new PrintWriter(new BufferedOutputStream(System.out));
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        // aとbを結合
        StringBuilder sb = new StringBuilder();
        sb.append(a).append(b);
        double n = Double.parseDouble(sb.toString());
        out.println(Main.checksqrt(n));
        out.close();
        sc.close();
    }

    /**
     * 引数が平方数かどうか判定
     * @param pnum
     * @return 平方数の場合は"Yes"、それ以外は"No"
     */
    private static String checksqrt(double pnum) {
        // 引数の平方根を求める
        double n = Math.sqrt(pnum);
        // 引数を平方根で割った余りが0ならば平方数
        if (pnum % n == 0) {
            return "Yes";
        } else {
            return "No";
        }
    }

} public class Main {
    public static PrintWriter out;

    public static void main(String[] args) {
        Main.run();
    }

    private static void run() {
        out = new PrintWriter(new BufferedOutputStream(System.out));
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        // aとbを結合
        StringBuilder sb = new StringBuilder();
        sb.append(a).append(b);
        double n = Double.parseDouble(sb.toString());
        out.println(Main.checksqrt(n));
        out.close();
        sc.close();
    }

    /**
     * 引数が平方数かどうか判定
     * @param pnum
     * @return 平方数の場合は"Yes"、それ以外は"No"
     */
    private static String checksqrt(double pnum) {
        // 引数の平方根を求める
        double n = Math.sqrt(pnum);
        // 引数を平方根で割った余りが0ならば平方数
        if (pnum % n == 0) {
            return "Yes";
        } else {
            return "No";
        }
    }

} Main
import java.io.BufferedOutputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static PrintWriter out;

    public static void main(String[] args) {
        Main.run();
    }

    private static void run() {
        out = new PrintWriter(new BufferedOutputStream(System.out));
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        // aとbを結合
        StringBuilder sb = new StringBuilder();
        sb.append(a).append(b);
        double n = Double.parseDouble(sb.toString());
        out.println(Main.checksqrt(n));
        out.close();
        sc.close();
    }

    /**
     * 引数が平方数かどうか判定
     * @param pnum
     * @return 平方数の場合は"Yes"、それ以外は"No"
     */
    private static String checksqrt(double pnum) {
        // 引数の平方根を求める
        double n = Math.sqrt(pnum);
        // 引数を平方根で割った余りが0ならば平方数
        if (pnum % n == 0) {
            return "Yes";
        } else {
            return "No";
        }
    }

}
