import java.util.*;
 
public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    double N = Double.parseDouble(S[0]+S[1]);
    int M = (int)Math.sqrt(N);
    String ans = (int)N == M*M ? "Yes" : "No";
    System.out.println(ans);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    double N = Double.parseDouble(S[0]+S[1]);
    int M = (int)Math.sqrt(N);
    String ans = (int)N == M*M ? "Yes" : "No";
    System.out.println(ans);
  }
} Main public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    double N = Double.parseDouble(S[0]+S[1]);
    int M = (int)Math.sqrt(N);
    String ans = (int)N == M*M ? "Yes" : "No";
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    double N = Double.parseDouble(S[0]+S[1]);
    int M = (int)Math.sqrt(N);
    String ans = (int)N == M*M ? "Yes" : "No";
    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] S = sc.nextLine().split(" "); S sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " double N = Double.parseDouble(S[0]+S[1]); N Double.parseDouble(S[0]+S[1]) Double.parseDouble Double S[0]+S[1] S[0] S 0 S[1] S 1 int M = (int)Math.sqrt(N); M (int)Math.sqrt(N) Math.sqrt Math N String ans = (int)N == M*M ? "Yes" : "No"; ans (int)N == M*M ? "Yes" : "No" (int)N == M*M (int)N M*M M M "Yes" "No" System.out.println(ans) System.out.println System.out System System.out ans String[]args args public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    double N = Double.parseDouble(S[0]+S[1]);
    int M = (int)Math.sqrt(N);
    String ans = (int)N == M*M ? "Yes" : "No";
    System.out.println(ans);
  }
} public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    double N = Double.parseDouble(S[0]+S[1]);
    int M = (int)Math.sqrt(N);
    String ans = (int)N == M*M ? "Yes" : "No";
    System.out.println(ans);
  }
} Main
import java.util.*;
 
public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    double N = Double.parseDouble(S[0]+S[1]);
    int M = (int)Math.sqrt(N);
    String ans = (int)N == M*M ? "Yes" : "No";
    System.out.println(ans);
  }
}