import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int dig;
        if((b / 100) >= 1){
            dig = 1000;
        }else  if(b / 10 >= 1){
            dig = 100;
        }else{
            dig = 10;
        }
        b = b + a * dig;

        for(int i = 1; i < 320; i++){
            if(b == i * i){
                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) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int dig;
        if((b / 100) >= 1){
            dig = 1000;
        }else  if(b / 10 >= 1){
            dig = 100;
        }else{
            dig = 10;
        }
        b = b + a * dig;

        for(int i = 1; i < 320; i++){
            if(b == i * i){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int dig;
        if((b / 100) >= 1){
            dig = 1000;
        }else  if(b / 10 >= 1){
            dig = 100;
        }else{
            dig = 10;
        }
        b = b + a * dig;

        for(int i = 1; i < 320; i++){
            if(b == i * i){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } main {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int dig;
        if((b / 100) >= 1){
            dig = 1000;
        }else  if(b / 10 >= 1){
            dig = 100;
        }else{
            dig = 10;
        }
        b = b + a * dig;

        for(int i = 1; i < 320; i++){
            if(b == i * i){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int dig; dig if((b / 100) >= 1){
            dig = 1000;
        }else  if(b / 10 >= 1){
            dig = 100;
        }else{
            dig = 10;
        } (b / 100) >= 1 (b / 100) b 100 1 {
            dig = 1000;
        } dig = 1000 dig 1000 if(b / 10 >= 1){
            dig = 100;
        }else{
            dig = 10;
        } b / 10 >= 1 b / 10 b 10 1 {
            dig = 100;
        } dig = 100 dig 100 {
            dig = 10;
        } dig = 10 dig 10 b = b + a * dig b b + a * dig b a * dig a dig for(int i = 1; i < 320; i++){
            if(b == i * i){
                System.out.println("Yes");
                return;
            }
        } int i = 1; int i = 1; i 1 i < 320 i 320 i++ i++ i {
            if(b == i * i){
                System.out.println("Yes");
                return;
            }
        } {
            if(b == i * i){
                System.out.println("Yes");
                return;
            }
        } if(b == i * i){
                System.out.println("Yes");
                return;
            } b == i * i b i * i i i {
                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) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int dig;
        if((b / 100) >= 1){
            dig = 1000;
        }else  if(b / 10 >= 1){
            dig = 100;
        }else{
            dig = 10;
        }
        b = b + a * dig;

        for(int i = 1; i < 320; i++){
            if(b == i * i){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int dig;
        if((b / 100) >= 1){
            dig = 1000;
        }else  if(b / 10 >= 1){
            dig = 100;
        }else{
            dig = 10;
        }
        b = b + a * dig;

        for(int i = 1; i < 320; i++){
            if(b == i * i){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int dig;
        if((b / 100) >= 1){
            dig = 1000;
        }else  if(b / 10 >= 1){
            dig = 100;
        }else{
            dig = 10;
        }
        b = b + a * dig;

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