import 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 x = Integer.parseInt(a + b);
        int y = (int)Math.sqrt(x);
        if(x == y * y)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);
        String a = sc.next();
        String b = sc.next();
        int x = Integer.parseInt(a + b);
        int y = (int)Math.sqrt(x);
        if(x == y * y)System.out.println("Yes");
        else System.out.println("No");
        sc.close();
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int x = Integer.parseInt(a + b);
        int y = (int)Math.sqrt(x);
        if(x == y * y)System.out.println("Yes");
        else System.out.println("No");
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int x = Integer.parseInt(a + b);
        int y = (int)Math.sqrt(x);
        if(x == y * y)System.out.println("Yes");
        else System.out.println("No");
        sc.close();
    } 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 x = Integer.parseInt(a + b); x Integer.parseInt(a + b) Integer.parseInt Integer a + b a b int y = (int)Math.sqrt(x); y (int)Math.sqrt(x) Math.sqrt Math x if(x == y * y)System.out.println("Yes");
        else System.out.println("No"); x == y * y x y * y y y 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" sc.close() sc.close sc 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 x = Integer.parseInt(a + b);
        int y = (int)Math.sqrt(x);
        if(x == y * y)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);
        String a = sc.next();
        String b = sc.next();
        int x = Integer.parseInt(a + b);
        int y = (int)Math.sqrt(x);
        if(x == y * y)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);
        String a = sc.next();
        String b = sc.next();
        int x = Integer.parseInt(a + b);
        int y = (int)Math.sqrt(x);
        if(x == y * y)System.out.println("Yes");
        else System.out.println("No");
        sc.close();
    }

}
