import java.util.*;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        System.out.println(Math.sqrt(Integer.parseInt(scanner.nextLine().replace(" ", ""))) % 1 == 0 ? "Yes" : "No");

    }
} import java.util.*; util.* java public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        System.out.println(Math.sqrt(Integer.parseInt(scanner.nextLine().replace(" ", ""))) % 1 == 0 ? "Yes" : "No");

    }
} Main static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[]$) {
        System.out.println(Math.sqrt(Integer.parseInt(scanner.nextLine().replace(" ", ""))) % 1 == 0 ? "Yes" : "No");

    } main {
        System.out.println(Math.sqrt(Integer.parseInt(scanner.nextLine().replace(" ", ""))) % 1 == 0 ? "Yes" : "No");

    } System.out.println(Math.sqrt(Integer.parseInt(scanner.nextLine().replace(" ", ""))) % 1 == 0 ? "Yes" : "No") System.out.println System.out System System.out Math.sqrt(Integer.parseInt(scanner.nextLine().replace(" ", ""))) % 1 == 0 ? "Yes" : "No" Math.sqrt(Integer.parseInt(scanner.nextLine().replace(" ", ""))) % 1 == 0 Math.sqrt(Integer.parseInt(scanner.nextLine().replace(" ", ""))) % 1 Math.sqrt(Integer.parseInt(scanner.nextLine().replace(" ", ""))) Math.sqrt Math Integer.parseInt(scanner.nextLine().replace(" ", "")) Integer.parseInt Integer scanner.nextLine().replace(" ", "") scanner.nextLine().replace scanner.nextLine() scanner.nextLine scanner " " "" 1 0 "Yes" "No" String[]$ $ public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        System.out.println(Math.sqrt(Integer.parseInt(scanner.nextLine().replace(" ", ""))) % 1 == 0 ? "Yes" : "No");

    }
} public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        System.out.println(Math.sqrt(Integer.parseInt(scanner.nextLine().replace(" ", ""))) % 1 == 0 ? "Yes" : "No");

    }
} Main
import java.util.*;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        System.out.println(Math.sqrt(Integer.parseInt(scanner.nextLine().replace(" ", ""))) % 1 == 0 ? "Yes" : "No");

    }
}