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();
    String n = a+b;
    int k = Integer.parseInt(n);
    int kk = (int)(Math.sqrt(k));//平方数を返す
    //System.out.println(kk);
    System.out.println(Math.pow(kk, 2) == k ? "Yes" : "No");
  }
}
    
     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();
    String n = a+b;
    int k = Integer.parseInt(n);
    int kk = (int)(Math.sqrt(k));//平方数を返す
    //System.out.println(kk);
    System.out.println(Math.pow(kk, 2) == k ? "Yes" : "No");
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    String n = a+b;
    int k = Integer.parseInt(n);
    int kk = (int)(Math.sqrt(k));//平方数を返す
    //System.out.println(kk);
    System.out.println(Math.pow(kk, 2) == k ? "Yes" : "No");
  } main {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    String n = a+b;
    int k = Integer.parseInt(n);
    int kk = (int)(Math.sqrt(k));//平方数を返す
    //System.out.println(kk);
    System.out.println(Math.pow(kk, 2) == k ? "Yes" : "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 String n = a+b; n a+b a b int k = Integer.parseInt(n); k Integer.parseInt(n) Integer.parseInt Integer n int kk = (int)(Math.sqrt(k)); kk (int)(Math.sqrt(k)) Math.sqrt Math k System.out.println(Math.pow(kk, 2) == k ? "Yes" : "No") System.out.println System.out System System.out Math.pow(kk, 2) == k ? "Yes" : "No" Math.pow(kk, 2) == k Math.pow(kk, 2) Math.pow Math kk 2 k "Yes" "No" 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();
    String n = a+b;
    int k = Integer.parseInt(n);
    int kk = (int)(Math.sqrt(k));//平方数を返す
    //System.out.println(kk);
    System.out.println(Math.pow(kk, 2) == k ? "Yes" : "No");
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    String n = a+b;
    int k = Integer.parseInt(n);
    int kk = (int)(Math.sqrt(k));//平方数を返す
    //System.out.println(kk);
    System.out.println(Math.pow(kk, 2) == k ? "Yes" : "No");
  }
} 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();
    String n = a+b;
    int k = Integer.parseInt(n);
    int kk = (int)(Math.sqrt(k));//平方数を返す
    //System.out.println(kk);
    System.out.println(Math.pow(kk, 2) == k ? "Yes" : "No");
  }
}
    
    