import java.util.Scanner;

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

        int ab = Integer.parseInt(a[0]+a[1]);

        for(int i=2; i<ab; i++) {
            if(Math.pow(i,2) == ab) {
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
        sc.close();
    }
} 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.nextLine().split(" ");

        int ab = Integer.parseInt(a[0]+a[1]);

        for(int i=2; i<ab; i++) {
            if(Math.pow(i,2) == ab) {
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split(" ");

        int ab = Integer.parseInt(a[0]+a[1]);

        for(int i=2; i<ab; i++) {
            if(Math.pow(i,2) == ab) {
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split(" ");

        int ab = Integer.parseInt(a[0]+a[1]);

        for(int i=2; i<ab; i++) {
            if(Math.pow(i,2) == ab) {
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] a = sc.nextLine().split(" "); a sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int ab = Integer.parseInt(a[0]+a[1]); ab Integer.parseInt(a[0]+a[1]) Integer.parseInt Integer a[0]+a[1] a[0] a 0 a[1] a 1 for(int i=2; i<ab; i++) {
            if(Math.pow(i,2) == ab) {
                System.out.println("Yes");
                System.exit(0);
            }
        } int i=2; int i=2; i 2 i<ab i ab i++ i++ i {
            if(Math.pow(i,2) == ab) {
                System.out.println("Yes");
                System.exit(0);
            }
        } {
            if(Math.pow(i,2) == ab) {
                System.out.println("Yes");
                System.exit(0);
            }
        } if(Math.pow(i,2) == ab) {
                System.out.println("Yes");
                System.exit(0);
            } Math.pow(i,2) == ab Math.pow(i,2) Math.pow Math i 2 ab {
                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" sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split(" ");

        int ab = Integer.parseInt(a[0]+a[1]);

        for(int i=2; i<ab; i++) {
            if(Math.pow(i,2) == ab) {
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split(" ");

        int ab = Integer.parseInt(a[0]+a[1]);

        for(int i=2; i<ab; i++) {
            if(Math.pow(i,2) == ab) {
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
        sc.close();
    }
} Main
import java.util.Scanner;

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

        int ab = Integer.parseInt(a[0]+a[1]);

        for(int i=2; i<ab; i++) {
            if(Math.pow(i,2) == ab) {
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
        sc.close();
    }
}
