import java.util.Scanner;

public class Main extends Exception{
    public static void main(String[] args) {
        Scanner s1 = new Scanner(System.in);
        String a = s1.next()+s1.next();
        int a1= Integer.parseInt(a);
        int a2=(int)Math.sqrt(a1);
        if (a1 == (a2*a2)){
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }

    }
} import java.util.Scanner; Scanner java.util public class Main extends Exception{
    public static void main(String[] args) {
        Scanner s1 = new Scanner(System.in);
        String a = s1.next()+s1.next();
        int a1= Integer.parseInt(a);
        int a2=(int)Math.sqrt(a1);
        if (a1 == (a2*a2)){
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }

    }
} Main public static void main(String[] args) {
        Scanner s1 = new Scanner(System.in);
        String a = s1.next()+s1.next();
        int a1= Integer.parseInt(a);
        int a2=(int)Math.sqrt(a1);
        if (a1 == (a2*a2)){
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }

    } main {
        Scanner s1 = new Scanner(System.in);
        String a = s1.next()+s1.next();
        int a1= Integer.parseInt(a);
        int a2=(int)Math.sqrt(a1);
        if (a1 == (a2*a2)){
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }

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

    }
} public class Main extends Exception{
    public static void main(String[] args) {
        Scanner s1 = new Scanner(System.in);
        String a = s1.next()+s1.next();
        int a1= Integer.parseInt(a);
        int a2=(int)Math.sqrt(a1);
        if (a1 == (a2*a2)){
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }

    }
} Main
import java.util.Scanner;

public class Main extends Exception{
    public static void main(String[] args) {
        Scanner s1 = new Scanner(System.in);
        String a = s1.next()+s1.next();
        int a1= Integer.parseInt(a);
        int a2=(int)Math.sqrt(a1);
        if (a1 == (a2*a2)){
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }

    }
}
