import java.util.*;
public class Main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int a = sc.nextInt();
      int b = sc.nextInt();
      String s = String.valueOf(b);

      a = a*10*(int)Math.pow(10,s.length()-1);

      for(int i = 0;i*i<=a+b;i++){
        if(a+b==i*i){
            System.out.println("Yes");
            System.exit(0);
        }
      }
      System.out.println("No");
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int a = sc.nextInt();
      int b = sc.nextInt();
      String s = String.valueOf(b);

      a = a*10*(int)Math.pow(10,s.length()-1);

      for(int i = 0;i*i<=a+b;i++){
        if(a+b==i*i){
            System.out.println("Yes");
            System.exit(0);
        }
      }
      System.out.println("No");
  }
} Main public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int a = sc.nextInt();
      int b = sc.nextInt();
      String s = String.valueOf(b);

      a = a*10*(int)Math.pow(10,s.length()-1);

      for(int i = 0;i*i<=a+b;i++){
        if(a+b==i*i){
            System.out.println("Yes");
            System.exit(0);
        }
      }
      System.out.println("No");
  } main {
      Scanner sc = new Scanner(System.in);

      int a = sc.nextInt();
      int b = sc.nextInt();
      String s = String.valueOf(b);

      a = a*10*(int)Math.pow(10,s.length()-1);

      for(int i = 0;i*i<=a+b;i++){
        if(a+b==i*i){
            System.out.println("Yes");
            System.exit(0);
        }
      }
      System.out.println("No");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc String s = String.valueOf(b); s String.valueOf(b) String.valueOf String b a = a*10*(int)Math.pow(10,s.length()-1) a a*10*(int)Math.pow(10,s.length()-1) a*10*(int)Math.pow(10,s.length()-1) a 10 (int)Math.pow(10,s.length()-1) Math.pow Math 10 s.length()-1 s.length() s.length s 1 for(int i = 0;i*i<=a+b;i++){
        if(a+b==i*i){
            System.out.println("Yes");
            System.exit(0);
        }
      } int i = 0; int i = 0; i 0 i*i<=a+b i*i i i a+b a b i++ i++ i {
        if(a+b==i*i){
            System.out.println("Yes");
            System.exit(0);
        }
      } {
        if(a+b==i*i){
            System.out.println("Yes");
            System.exit(0);
        }
      } if(a+b==i*i){
            System.out.println("Yes");
            System.exit(0);
        } a+b==i*i a+b a b i*i i i {
            System.out.println("Yes");
            System.exit(0);
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" System.exit(0) System.exit System 0 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);

      int a = sc.nextInt();
      int b = sc.nextInt();
      String s = String.valueOf(b);

      a = a*10*(int)Math.pow(10,s.length()-1);

      for(int i = 0;i*i<=a+b;i++){
        if(a+b==i*i){
            System.out.println("Yes");
            System.exit(0);
        }
      }
      System.out.println("No");
  }
} public class Main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int a = sc.nextInt();
      int b = sc.nextInt();
      String s = String.valueOf(b);

      a = a*10*(int)Math.pow(10,s.length()-1);

      for(int i = 0;i*i<=a+b;i++){
        if(a+b==i*i){
            System.out.println("Yes");
            System.exit(0);
        }
      }
      System.out.println("No");
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int a = sc.nextInt();
      int b = sc.nextInt();
      String s = String.valueOf(b);

      a = a*10*(int)Math.pow(10,s.length()-1);

      for(int i = 0;i*i<=a+b;i++){
        if(a+b==i*i){
            System.out.println("Yes");
            System.exit(0);
        }
      }
      System.out.println("No");
  }
}