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();
        int c = Integer.parseInt(a + b);
        for (int i = 1; ; i++) {
            int tmp = i * i;
            if(tmp == c) {
                System.out.println("Yes");
                return;
            } else if(tmp > c) {
                System.out.println("No");
                return;
            }
        }
    }
} 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();
        int c = Integer.parseInt(a + b);
        for (int i = 1; ; i++) {
            int tmp = i * i;
            if(tmp == c) {
                System.out.println("Yes");
                return;
            } else if(tmp > c) {
                System.out.println("No");
                return;
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int c = Integer.parseInt(a + b);
        for (int i = 1; ; i++) {
            int tmp = i * i;
            if(tmp == c) {
                System.out.println("Yes");
                return;
            } else if(tmp > c) {
                System.out.println("No");
                return;
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int c = Integer.parseInt(a + b);
        for (int i = 1; ; i++) {
            int tmp = i * i;
            if(tmp == c) {
                System.out.println("Yes");
                return;
            } else if(tmp > c) {
                System.out.println("No");
                return;
            }
        }
    } 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 int c = Integer.parseInt(a + b); c Integer.parseInt(a + b) Integer.parseInt Integer a + b a b for (int i = 1; ; i++) {
            int tmp = i * i;
            if(tmp == c) {
                System.out.println("Yes");
                return;
            } else if(tmp > c) {
                System.out.println("No");
                return;
            }
        } int i = 1; int i = 1; i 1 i++ i++ i {
            int tmp = i * i;
            if(tmp == c) {
                System.out.println("Yes");
                return;
            } else if(tmp > c) {
                System.out.println("No");
                return;
            }
        } {
            int tmp = i * i;
            if(tmp == c) {
                System.out.println("Yes");
                return;
            } else if(tmp > c) {
                System.out.println("No");
                return;
            }
        } int tmp = i * i; tmp i * i i i if(tmp == c) {
                System.out.println("Yes");
                return;
            } else if(tmp > c) {
                System.out.println("No");
                return;
            } tmp == c tmp c {
                System.out.println("Yes");
                return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; if(tmp > c) {
                System.out.println("No");
                return;
            } tmp > c tmp c {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; 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();
        int c = Integer.parseInt(a + b);
        for (int i = 1; ; i++) {
            int tmp = i * i;
            if(tmp == c) {
                System.out.println("Yes");
                return;
            } else if(tmp > c) {
                System.out.println("No");
                return;
            }
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int c = Integer.parseInt(a + b);
        for (int i = 1; ; i++) {
            int tmp = i * i;
            if(tmp == c) {
                System.out.println("Yes");
                return;
            } else if(tmp > c) {
                System.out.println("No");
                return;
            }
        }
    }
} 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();
        int c = Integer.parseInt(a + b);
        for (int i = 1; ; i++) {
            int tmp = i * i;
            if(tmp == c) {
                System.out.println("Yes");
                return;
            } else if(tmp > c) {
                System.out.println("No");
                return;
            }
        }
    }
}