import java.math.BigDecimal;
import java.util.*;
import java.util.stream.Collectors;

class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        double c = Double.parseDouble(a + b);
        double sq = Math.sqrt(c);
        double rem = sq % (int) sq;
        if (rem == 0D) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.math.BigDecimal; BigDecimal java.math import java.util.*; util.* java import java.util.stream.Collectors; Collectors java.util.stream class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        double c = Double.parseDouble(a + b);
        double sq = Math.sqrt(c);
        double rem = sq % (int) sq;
        if (rem == 0D) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        double c = Double.parseDouble(a + b);
        double sq = Math.sqrt(c);
        double rem = sq % (int) sq;
        if (rem == 0D) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        double c = Double.parseDouble(a + b);
        double sq = Math.sqrt(c);
        double rem = sq % (int) sq;
        if (rem == 0D) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } 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 double c = Double.parseDouble(a + b); c Double.parseDouble(a + b) Double.parseDouble Double a + b a b double sq = Math.sqrt(c); sq Math.sqrt(c) Math.sqrt Math c double rem = sq % (int) sq; rem sq % (int) sq sq (int) sq if (rem == 0D) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } rem == 0D rem 0D {
            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
import java.math.BigDecimal;
import java.util.*;
import java.util.stream.Collectors;

class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        double c = Double.parseDouble(a + b);
        double sq = Math.sqrt(c);
        double rem = sq % (int) sq;
        if (rem == 0D) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}