import java.lang.reflect.Array;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt();
        int sz = 0;
        int y = b;
        while(y > 0 ){
            y /= 10;
            sz ++;
        }
        a = b + a *(int)Math.pow(10,sz);
        if((int)Math.sqrt(a) * (int)Math.sqrt(a) == a) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
} import java.lang.reflect.Array; Array java.lang.reflect import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt();
        int sz = 0;
        int y = b;
        while(y > 0 ){
            y /= 10;
            sz ++;
        }
        a = b + a *(int)Math.pow(10,sz);
        if((int)Math.sqrt(a) * (int)Math.sqrt(a) == a) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt();
        int sz = 0;
        int y = b;
        while(y > 0 ){
            y /= 10;
            sz ++;
        }
        a = b + a *(int)Math.pow(10,sz);
        if((int)Math.sqrt(a) * (int)Math.sqrt(a) == a) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt();
        int sz = 0;
        int y = b;
        while(y > 0 ){
            y /= 10;
            sz ++;
        }
        a = b + a *(int)Math.pow(10,sz);
        if((int)Math.sqrt(a) * (int)Math.sqrt(a) == a) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int sz = 0; sz 0 int y = b; y b while(y > 0 ){
            y /= 10;
            sz ++;
        } y > 0 y 0 {
            y /= 10;
            sz ++;
        } y /= 10 y 10 sz ++ sz a = b + a *(int)Math.pow(10,sz) a b + a *(int)Math.pow(10,sz) b a *(int)Math.pow(10,sz) a (int)Math.pow(10,sz) Math.pow Math 10 sz if((int)Math.sqrt(a) * (int)Math.sqrt(a) == a) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        } (int)Math.sqrt(a) * (int)Math.sqrt(a) == a (int)Math.sqrt(a) * (int)Math.sqrt(a) (int)Math.sqrt(a) Math.sqrt Math a (int)Math.sqrt(a) Math.sqrt Math a a {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.println("No");
        } 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);
        int a = sc.nextInt(), b = sc.nextInt();
        int sz = 0;
        int y = b;
        while(y > 0 ){
            y /= 10;
            sz ++;
        }
        a = b + a *(int)Math.pow(10,sz);
        if((int)Math.sqrt(a) * (int)Math.sqrt(a) == a) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt();
        int sz = 0;
        int y = b;
        while(y > 0 ){
            y /= 10;
            sz ++;
        }
        a = b + a *(int)Math.pow(10,sz);
        if((int)Math.sqrt(a) * (int)Math.sqrt(a) == a) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
} Main
import java.lang.reflect.Array;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt();
        int sz = 0;
        int y = b;
        while(y > 0 ){
            y /= 10;
            sz ++;
        }
        a = b + a *(int)Math.pow(10,sz);
        if((int)Math.sqrt(a) * (int)Math.sqrt(a) == a) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
}
