import java.util.*;
 class Main{

     public static void main(String []args){
      Scanner scan = new Scanner(System.in);
      String m = Integer.toString(scan.nextInt()) ;
      String n = Integer.toString(scan.nextInt()) ;
      int x = Integer.parseInt(m+n) ;
      
      if((Math.sqrt(x) - (int)Math.sqrt(x)) == 0){
          System.out.println("Yes");
      }else{
          System.out.println("No");
      }
      
    }
} import java.util.*; util.* java class Main{

     public static void main(String []args){
      Scanner scan = new Scanner(System.in);
      String m = Integer.toString(scan.nextInt()) ;
      String n = Integer.toString(scan.nextInt()) ;
      int x = Integer.parseInt(m+n) ;
      
      if((Math.sqrt(x) - (int)Math.sqrt(x)) == 0){
          System.out.println("Yes");
      }else{
          System.out.println("No");
      }
      
    }
} Main public static void main(String []args){
      Scanner scan = new Scanner(System.in);
      String m = Integer.toString(scan.nextInt()) ;
      String n = Integer.toString(scan.nextInt()) ;
      int x = Integer.parseInt(m+n) ;
      
      if((Math.sqrt(x) - (int)Math.sqrt(x)) == 0){
          System.out.println("Yes");
      }else{
          System.out.println("No");
      }
      
    } main {
      Scanner scan = new Scanner(System.in);
      String m = Integer.toString(scan.nextInt()) ;
      String n = Integer.toString(scan.nextInt()) ;
      int x = Integer.parseInt(m+n) ;
      
      if((Math.sqrt(x) - (int)Math.sqrt(x)) == 0){
          System.out.println("Yes");
      }else{
          System.out.println("No");
      }
      
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String m = Integer.toString(scan.nextInt()) ; m Integer.toString(scan.nextInt()) Integer.toString Integer scan.nextInt() scan.nextInt scan String n = Integer.toString(scan.nextInt()) ; n Integer.toString(scan.nextInt()) Integer.toString Integer scan.nextInt() scan.nextInt scan int x = Integer.parseInt(m+n) ; x Integer.parseInt(m+n) Integer.parseInt Integer m+n m n if((Math.sqrt(x) - (int)Math.sqrt(x)) == 0){
          System.out.println("Yes");
      }else{
          System.out.println("No");
      } (Math.sqrt(x) - (int)Math.sqrt(x)) == 0 (Math.sqrt(x) - (int)Math.sqrt(x)) Math.sqrt(x) Math.sqrt Math x (int)Math.sqrt(x) Math.sqrt Math x 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
import java.util.*;
 class Main{

     public static void main(String []args){
      Scanner scan = new Scanner(System.in);
      String m = Integer.toString(scan.nextInt()) ;
      String n = Integer.toString(scan.nextInt()) ;
      int x = Integer.parseInt(m+n) ;
      
      if((Math.sqrt(x) - (int)Math.sqrt(x)) == 0){
          System.out.println("Yes");
      }else{
          System.out.println("No");
      }
      
    }
}