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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int ab = Integer.parseInt(a + b);

        double sqrt_num = Math.sqrt(ab);

        PrintWriter out = new PrintWriter(System.out);
        if (sqrt_num == (int) sqrt_num) {
            out.println("Yes");
        } else {
            out.println("No");
        }

        out.flush();
        sc.close();
    }
} import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int ab = Integer.parseInt(a + b);

        double sqrt_num = Math.sqrt(ab);

        PrintWriter out = new PrintWriter(System.out);
        if (sqrt_num == (int) sqrt_num) {
            out.println("Yes");
        } else {
            out.println("No");
        }

        out.flush();
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int ab = Integer.parseInt(a + b);

        double sqrt_num = Math.sqrt(ab);

        PrintWriter out = new PrintWriter(System.out);
        if (sqrt_num == (int) sqrt_num) {
            out.println("Yes");
        } else {
            out.println("No");
        }

        out.flush();
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int ab = Integer.parseInt(a + b);

        double sqrt_num = Math.sqrt(ab);

        PrintWriter out = new PrintWriter(System.out);
        if (sqrt_num == (int) sqrt_num) {
            out.println("Yes");
        } else {
            out.println("No");
        }

        out.flush();
        sc.close();
    } 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 int ab = Integer.parseInt(a + b); ab Integer.parseInt(a + b) Integer.parseInt Integer a + b a b double sqrt_num = Math.sqrt(ab); sqrt_num Math.sqrt(ab) Math.sqrt Math ab PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) if (sqrt_num == (int) sqrt_num) {
            out.println("Yes");
        } else {
            out.println("No");
        } sqrt_num == (int) sqrt_num sqrt_num (int) sqrt_num {
            out.println("Yes");
        } out.println("Yes") out.println out "Yes" {
            out.println("No");
        } out.println("No") out.println out "No" out.flush() out.flush out sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int ab = Integer.parseInt(a + b);

        double sqrt_num = Math.sqrt(ab);

        PrintWriter out = new PrintWriter(System.out);
        if (sqrt_num == (int) sqrt_num) {
            out.println("Yes");
        } else {
            out.println("No");
        }

        out.flush();
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int ab = Integer.parseInt(a + b);

        double sqrt_num = Math.sqrt(ab);

        PrintWriter out = new PrintWriter(System.out);
        if (sqrt_num == (int) sqrt_num) {
            out.println("Yes");
        } else {
            out.println("No");
        }

        out.flush();
        sc.close();
    }
} Main
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int ab = Integer.parseInt(a + b);

        double sqrt_num = Math.sqrt(ab);

        PrintWriter out = new PrintWriter(System.out);
        if (sqrt_num == (int) sqrt_num) {
            out.println("Yes");
        } else {
            out.println("No");
        }

        out.flush();
        sc.close();
    }
}