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();
        StringBuilder tmp = new StringBuilder();
        tmp.append(a);
        tmp.append(b);
        int number = Integer.parseInt(tmp.toString());

        for(int i = 0; i < 500; i++) {
            if (number == i*i) {
                System.out.println("Yes");
                System.exit(0);
            }
        }
        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);
        String a = sc.next();
        String b = sc.next();
        StringBuilder tmp = new StringBuilder();
        tmp.append(a);
        tmp.append(b);
        int number = Integer.parseInt(tmp.toString());

        for(int i = 0; i < 500; i++) {
            if (number == i*i) {
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        StringBuilder tmp = new StringBuilder();
        tmp.append(a);
        tmp.append(b);
        int number = Integer.parseInt(tmp.toString());

        for(int i = 0; i < 500; i++) {
            if (number == i*i) {
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
    } main {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        StringBuilder tmp = new StringBuilder();
        tmp.append(a);
        tmp.append(b);
        int number = Integer.parseInt(tmp.toString());

        for(int i = 0; i < 500; i++) {
            if (number == i*i) {
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
    } 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 tmp = new StringBuilder(); tmp new StringBuilder() tmp.append(a) tmp.append tmp a tmp.append(b) tmp.append tmp b int number = Integer.parseInt(tmp.toString()); number Integer.parseInt(tmp.toString()) Integer.parseInt Integer tmp.toString() tmp.toString tmp for(int i = 0; i < 500; i++) {
            if (number == i*i) {
                System.out.println("Yes");
                System.exit(0);
            }
        } int i = 0; int i = 0; i 0 i < 500 i 500 i++ i++ i {
            if (number == i*i) {
                System.out.println("Yes");
                System.exit(0);
            }
        } {
            if (number == i*i) {
                System.out.println("Yes");
                System.exit(0);
            }
        } if (number == i*i) {
                System.out.println("Yes");
                System.exit(0);
            } number == i*i number i*i i i {
                System.out.println("Yes");
                System.exit(0);
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" System.exit(0) System.exit System 0 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);
        String a = sc.next();
        String b = sc.next();
        StringBuilder tmp = new StringBuilder();
        tmp.append(a);
        tmp.append(b);
        int number = Integer.parseInt(tmp.toString());

        for(int i = 0; i < 500; i++) {
            if (number == i*i) {
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        StringBuilder tmp = new StringBuilder();
        tmp.append(a);
        tmp.append(b);
        int number = Integer.parseInt(tmp.toString());

        for(int i = 0; i < 500; i++) {
            if (number == i*i) {
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
    }
} Main
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();
        StringBuilder tmp = new StringBuilder();
        tmp.append(a);
        tmp.append(b);
        int number = Integer.parseInt(tmp.toString());

        for(int i = 0; i < 500; i++) {
            if (number == i*i) {
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
    }
}
