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 deff = a + b;
    int result = Integer.parseInt(deff);
    
    double check = Math.sqrt(result) - (int)Math.sqrt(result);
    
    if(check == 0){
      System.out.println("Yes");
    }else{
      System.out.println("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 deff = a + b;
    int result = Integer.parseInt(deff);
    
    double check = Math.sqrt(result) - (int)Math.sqrt(result);
    
    if(check == 0){
      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();
    
    String deff = a + b;
    int result = Integer.parseInt(deff);
    
    double check = Math.sqrt(result) - (int)Math.sqrt(result);
    
    if(check == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    
    String a = sc.next();
    String b = sc.next();
    
    String deff = a + b;
    int result = Integer.parseInt(deff);
    
    double check = Math.sqrt(result) - (int)Math.sqrt(result);
    
    if(check == 0){
      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 String deff = a + b; deff a + b a b int result = Integer.parseInt(deff); result Integer.parseInt(deff) Integer.parseInt Integer deff double check = Math.sqrt(result) - (int)Math.sqrt(result); check Math.sqrt(result) - (int)Math.sqrt(result) Math.sqrt(result) Math.sqrt Math result (int)Math.sqrt(result) Math.sqrt Math result if(check == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    } check == 0 check 0 {
      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 public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    
    String a = sc.next();
    String b = sc.next();
    
    String deff = a + b;
    int result = Integer.parseInt(deff);
    
    double check = Math.sqrt(result) - (int)Math.sqrt(result);
    
    if(check == 0){
      System.out.println("Yes");
    }else{
      System.out.println("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 deff = a + b;
    int result = Integer.parseInt(deff);
    
    double check = Math.sqrt(result) - (int)Math.sqrt(result);
    
    if(check == 0){
      System.out.println("Yes");
    }else{
      System.out.println("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 deff = a + b;
    int result = Integer.parseInt(deff);
    
    double check = Math.sqrt(result) - (int)Math.sqrt(result);
    
    if(check == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}