import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String[] input = sc.nextLine().split(" ");
            int num = Integer.parseInt(input[0] + input[1]);
            double sqrtOfNumber = Math.sqrt(num);
            if (sqrtOfNumber == Math.floor(sqrtOfNumber)) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }
        sc.close();
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String[] input = sc.nextLine().split(" ");
            int num = Integer.parseInt(input[0] + input[1]);
            double sqrtOfNumber = Math.sqrt(num);
            if (sqrtOfNumber == Math.floor(sqrtOfNumber)) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String[] input = sc.nextLine().split(" ");
            int num = Integer.parseInt(input[0] + input[1]);
            double sqrtOfNumber = Math.sqrt(num);
            if (sqrtOfNumber == Math.floor(sqrtOfNumber)) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String[] input = sc.nextLine().split(" ");
            int num = Integer.parseInt(input[0] + input[1]);
            double sqrtOfNumber = Math.sqrt(num);
            if (sqrtOfNumber == Math.floor(sqrtOfNumber)) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (sc.hasNext()) {
            String[] input = sc.nextLine().split(" ");
            int num = Integer.parseInt(input[0] + input[1]);
            double sqrtOfNumber = Math.sqrt(num);
            if (sqrtOfNumber == Math.floor(sqrtOfNumber)) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        } sc.hasNext() sc.hasNext sc {
            String[] input = sc.nextLine().split(" ");
            int num = Integer.parseInt(input[0] + input[1]);
            double sqrtOfNumber = Math.sqrt(num);
            if (sqrtOfNumber == Math.floor(sqrtOfNumber)) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        } String[] input = sc.nextLine().split(" "); input sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int num = Integer.parseInt(input[0] + input[1]); num Integer.parseInt(input[0] + input[1]) Integer.parseInt Integer input[0] + input[1] input[0] input 0 input[1] input 1 double sqrtOfNumber = Math.sqrt(num); sqrtOfNumber Math.sqrt(num) Math.sqrt Math num if (sqrtOfNumber == Math.floor(sqrtOfNumber)) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            } sqrtOfNumber == Math.floor(sqrtOfNumber) sqrtOfNumber Math.floor(sqrtOfNumber) Math.floor Math sqrtOfNumber {
                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" sc.close() sc.close sc String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String[] input = sc.nextLine().split(" ");
            int num = Integer.parseInt(input[0] + input[1]);
            double sqrtOfNumber = Math.sqrt(num);
            if (sqrtOfNumber == Math.floor(sqrtOfNumber)) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }
        sc.close();
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String[] input = sc.nextLine().split(" ");
            int num = Integer.parseInt(input[0] + input[1]);
            double sqrtOfNumber = Math.sqrt(num);
            if (sqrtOfNumber == Math.floor(sqrtOfNumber)) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }
        sc.close();
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String[] input = sc.nextLine().split(" ");
            int num = Integer.parseInt(input[0] + input[1]);
            double sqrtOfNumber = Math.sqrt(num);
            if (sqrtOfNumber == Math.floor(sqrtOfNumber)) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }
        sc.close();
    }
}