import java.util.*;

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

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

        String s = String.valueOf(a) + String.valueOf(b);

        int c = Integer.parseInt(s);

        boolean isSqare = false;

        for (int i = 1; i <= 1000; i++) {
            if (i * i == c) {
                System.out.println("Yes");
                isSqare = true;
                break;
            }
        }

        if (!isSqare)
            System.out.println("No");

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

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

        String s = String.valueOf(a) + String.valueOf(b);

        int c = Integer.parseInt(s);

        boolean isSqare = false;

        for (int i = 1; i <= 1000; i++) {
            if (i * i == c) {
                System.out.println("Yes");
                isSqare = true;
                break;
            }
        }

        if (!isSqare)
            System.out.println("No");

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

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

        String s = String.valueOf(a) + String.valueOf(b);

        int c = Integer.parseInt(s);

        boolean isSqare = false;

        for (int i = 1; i <= 1000; i++) {
            if (i * i == c) {
                System.out.println("Yes");
                isSqare = true;
                break;
            }
        }

        if (!isSqare)
            System.out.println("No");

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

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

        String s = String.valueOf(a) + String.valueOf(b);

        int c = Integer.parseInt(s);

        boolean isSqare = false;

        for (int i = 1; i <= 1000; i++) {
            if (i * i == c) {
                System.out.println("Yes");
                isSqare = true;
                break;
            }
        }

        if (!isSqare)
            System.out.println("No");

    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn String s = String.valueOf(a) + String.valueOf(b); s String.valueOf(a) + String.valueOf(b) String.valueOf(a) String.valueOf String a String.valueOf(b) String.valueOf String b int c = Integer.parseInt(s); c Integer.parseInt(s) Integer.parseInt Integer s boolean isSqare = false; isSqare false for (int i = 1; i <= 1000; i++) {
            if (i * i == c) {
                System.out.println("Yes");
                isSqare = true;
                break;
            }
        } int i = 1; int i = 1; i 1 i <= 1000 i 1000 i++ i++ i {
            if (i * i == c) {
                System.out.println("Yes");
                isSqare = true;
                break;
            }
        } {
            if (i * i == c) {
                System.out.println("Yes");
                isSqare = true;
                break;
            }
        } if (i * i == c) {
                System.out.println("Yes");
                isSqare = true;
                break;
            } i * i == c i * i i i c {
                System.out.println("Yes");
                isSqare = true;
                break;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" isSqare = true isSqare true break; if (!isSqare)
            System.out.println("No"); !isSqare isSqare System.out.println("No") System.out.println System.out System System.out "No" String[] args args
import java.util.*;

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

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

        String s = String.valueOf(a) + String.valueOf(b);

        int c = Integer.parseInt(s);

        boolean isSqare = false;

        for (int i = 1; i <= 1000; i++) {
            if (i * i == c) {
                System.out.println("Yes");
                isSqare = true;
                break;
            }
        }

        if (!isSqare)
            System.out.println("No");

    }
}