import java.util.*;

class Main {
    public static void main(String[] args) {
        new Solver().run();
    }
}

class Solver {

    public void run() {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        int v = Integer.parseInt(a+b);
        int x = (int)Math.sqrt(v);
        if (x * x == v) System.out.println("Yes");
        else System.out.println("No");

        return;
    }

} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        new Solver().run();
    }
} Main public static void main(String[] args) {
        new Solver().run();
    } main {
        new Solver().run();
    } new Solver().run() new Solver().run new Solver() String[] args args class Solver {

    public void run() {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        int v = Integer.parseInt(a+b);
        int x = (int)Math.sqrt(v);
        if (x * x == v) System.out.println("Yes");
        else System.out.println("No");

        return;
    }

} Solver public void run() {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        int v = Integer.parseInt(a+b);
        int x = (int)Math.sqrt(v);
        if (x * x == v) System.out.println("Yes");
        else System.out.println("No");

        return;
    } run {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        int v = Integer.parseInt(a+b);
        int x = (int)Math.sqrt(v);
        if (x * x == v) System.out.println("Yes");
        else 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 v = Integer.parseInt(a+b); v Integer.parseInt(a+b) Integer.parseInt Integer a+b a b int x = (int)Math.sqrt(v); x (int)Math.sqrt(v) Math.sqrt Math v if (x * x == v) System.out.println("Yes");
        else System.out.println("No"); x * x == v x * x x x v System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" return;
import java.util.*;

class Main {
    public static void main(String[] args) {
        new Solver().run();
    }
}

class Solver {

    public void run() {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        int v = Integer.parseInt(a+b);
        int x = (int)Math.sqrt(v);
        if (x * x == v) System.out.println("Yes");
        else System.out.println("No");

        return;
    }

}