import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int sum = a * (int)Math.pow(10, String.valueOf(b).length()) + b;
        int sqrt = (int)Math.sqrt(sum);
        System.out.println(sqrt * sqrt == sum ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int sum = a * (int)Math.pow(10, String.valueOf(b).length()) + b;
        int sqrt = (int)Math.sqrt(sum);
        System.out.println(sqrt * sqrt == sum ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int sum = a * (int)Math.pow(10, String.valueOf(b).length()) + b;
        int sqrt = (int)Math.sqrt(sum);
        System.out.println(sqrt * sqrt == sum ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int sum = a * (int)Math.pow(10, String.valueOf(b).length()) + b;
        int sqrt = (int)Math.sqrt(sum);
        System.out.println(sqrt * sqrt == sum ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int sum = a * (int)Math.pow(10, String.valueOf(b).length()) + b; sum a * (int)Math.pow(10, String.valueOf(b).length()) + b a * (int)Math.pow(10, String.valueOf(b).length()) a (int)Math.pow(10, String.valueOf(b).length()) Math.pow Math 10 String.valueOf(b).length() String.valueOf(b).length String.valueOf(b) String.valueOf String b b int sqrt = (int)Math.sqrt(sum); sqrt (int)Math.sqrt(sum) Math.sqrt Math sum System.out.println(sqrt * sqrt == sum ? "Yes" : "No") System.out.println System.out System System.out sqrt * sqrt == sum ? "Yes" : "No" sqrt * sqrt == sum sqrt * sqrt sqrt sqrt sum "Yes" "No" String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int sum = a * (int)Math.pow(10, String.valueOf(b).length()) + b;
        int sqrt = (int)Math.sqrt(sum);
        System.out.println(sqrt * sqrt == sum ? "Yes" : "No");
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int sum = a * (int)Math.pow(10, String.valueOf(b).length()) + b;
        int sqrt = (int)Math.sqrt(sum);
        System.out.println(sqrt * sqrt == sum ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int sum = a * (int)Math.pow(10, String.valueOf(b).length()) + b;
        int sqrt = (int)Math.sqrt(sum);
        System.out.println(sqrt * sqrt == sum ? "Yes" : "No");
    }
}