import java.util.Scanner;

public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        double c = Math.sqrt(new Double(sc.next() + sc.next()));
        System.out.println((c == (int)c) ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        double c = Math.sqrt(new Double(sc.next() + sc.next()));
        System.out.println((c == (int)c) ? "Yes" : "No");
    }
} Main public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        double c = Math.sqrt(new Double(sc.next() + sc.next()));
        System.out.println((c == (int)c) ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        double c = Math.sqrt(new Double(sc.next() + sc.next()));
        System.out.println((c == (int)c) ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) double c = Math.sqrt(new Double(sc.next() + sc.next())); c Math.sqrt(new Double(sc.next() + sc.next())) Math.sqrt Math new Double(sc.next() + sc.next()) System.out.println((c == (int)c) ? "Yes" : "No") System.out.println System.out System System.out (c == (int)c) ? "Yes" : "No" (c == (int)c) c (int)c "Yes" "No" String... args args public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        double c = Math.sqrt(new Double(sc.next() + sc.next()));
        System.out.println((c == (int)c) ? "Yes" : "No");
    }
} public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        double c = Math.sqrt(new Double(sc.next() + sc.next()));
        System.out.println((c == (int)c) ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        double c = Math.sqrt(new Double(sc.next() + sc.next()));
        System.out.println((c == (int)c) ? "Yes" : "No");
    }
}
