import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int n = Integer.parseInt(String.valueOf(a)+String.valueOf(b));

        for (int i = 1; i < 330; i++) {
            if (i * i == n) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int n = Integer.parseInt(String.valueOf(a)+String.valueOf(b));

        for (int i = 1; i < 330; i++) {
            if (i * i == n) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");

    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int n = Integer.parseInt(String.valueOf(a)+String.valueOf(b));

        for (int i = 1; i < 330; i++) {
            if (i * i == n) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");

    } main {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int n = Integer.parseInt(String.valueOf(a)+String.valueOf(b));

        for (int i = 1; i < 330; i++) {
            if (i * i == n) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int n = Integer.parseInt(String.valueOf(a)+String.valueOf(b)); n Integer.parseInt(String.valueOf(a)+String.valueOf(b)) Integer.parseInt Integer String.valueOf(a)+String.valueOf(b) String.valueOf(a) String.valueOf String a String.valueOf(b) String.valueOf String b for (int i = 1; i < 330; i++) {
            if (i * i == n) {
                System.out.println("Yes");
                return;
            }
        } int i = 1; int i = 1; i 1 i < 330 i 330 i++ i++ i {
            if (i * i == n) {
                System.out.println("Yes");
                return;
            }
        } {
            if (i * i == n) {
                System.out.println("Yes");
                return;
            }
        } if (i * i == n) {
                System.out.println("Yes");
                return;
            } i * i == n i * i i i n {
                System.out.println("Yes");
                return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; 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 sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int n = Integer.parseInt(String.valueOf(a)+String.valueOf(b));

        for (int i = 1; i < 330; i++) {
            if (i * i == n) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");

    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int n = Integer.parseInt(String.valueOf(a)+String.valueOf(b));

        for (int i = 1; i < 330; i++) {
            if (i * i == n) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");

    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int n = Integer.parseInt(String.valueOf(a)+String.valueOf(b));

        for (int i = 1; i < 330; i++) {
            if (i * i == n) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");

    }
}
