import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i = 0 ; i <= 1000 ; i++) {
            if (String.valueOf(i * i).equals(String.valueOf(a) +  String.valueOf(b))) {
                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) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i = 0 ; i <= 1000 ; i++) {
            if (String.valueOf(i * i).equals(String.valueOf(a) +  String.valueOf(b))) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }

} Main public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i = 0 ; i <= 1000 ; i++) {
            if (String.valueOf(i * i).equals(String.valueOf(a) +  String.valueOf(b))) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } main {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i = 0 ; i <= 1000 ; i++) {
            if (String.valueOf(i * i).equals(String.valueOf(a) +  String.valueOf(b))) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } @SuppressWarnings("resource")
        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 for (int i = 0 ; i <= 1000 ; i++) {
            if (String.valueOf(i * i).equals(String.valueOf(a) +  String.valueOf(b))) {
                System.out.println("Yes");
                return;
            }
        } int i = 0 ; int i = 0 ; i 0 i <= 1000 i 1000 i++ i++ i {
            if (String.valueOf(i * i).equals(String.valueOf(a) +  String.valueOf(b))) {
                System.out.println("Yes");
                return;
            }
        } {
            if (String.valueOf(i * i).equals(String.valueOf(a) +  String.valueOf(b))) {
                System.out.println("Yes");
                return;
            }
        } if (String.valueOf(i * i).equals(String.valueOf(a) +  String.valueOf(b))) {
                System.out.println("Yes");
                return;
            } String.valueOf(i * i).equals(String.valueOf(a) +  String.valueOf(b)) String.valueOf(i * i).equals String.valueOf(i * i) String.valueOf String i * i i i String.valueOf(a) +  String.valueOf(b) String.valueOf(a) String.valueOf String a String.valueOf(b) String.valueOf String b {
                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) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i = 0 ; i <= 1000 ; i++) {
            if (String.valueOf(i * i).equals(String.valueOf(a) +  String.valueOf(b))) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }

} public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i = 0 ; i <= 1000 ; i++) {
            if (String.valueOf(i * i).equals(String.valueOf(a) +  String.valueOf(b))) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i = 0 ; i <= 1000 ; i++) {
            if (String.valueOf(i * i).equals(String.valueOf(a) +  String.valueOf(b))) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }

}