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();

    sc.close();

    int ab = Integer.valueOf(a + b);
    
    String result = "No";

    int c = 1;
    int d = 1;

    while (d <= ab) {
      if (d == ab){
        result = "Yes";
        break;
      }
      c++;
      d = c * c;
    }

    System.out.println(result);

  }

} 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();

    sc.close();

    int ab = Integer.valueOf(a + b);
    
    String result = "No";

    int c = 1;
    int d = 1;

    while (d <= ab) {
      if (d == ab){
        result = "Yes";
        break;
      }
      c++;
      d = c * c;
    }

    System.out.println(result);

  }

} Main public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    String a = sc.next();
    String b = sc.next();

    sc.close();

    int ab = Integer.valueOf(a + b);
    
    String result = "No";

    int c = 1;
    int d = 1;

    while (d <= ab) {
      if (d == ab){
        result = "Yes";
        break;
      }
      c++;
      d = c * c;
    }

    System.out.println(result);

  } main {

    Scanner sc = new Scanner(System.in);

    String a = sc.next();
    String b = sc.next();

    sc.close();

    int ab = Integer.valueOf(a + b);
    
    String result = "No";

    int c = 1;
    int d = 1;

    while (d <= ab) {
      if (d == ab){
        result = "Yes";
        break;
      }
      c++;
      d = c * c;
    }

    System.out.println(result);

  } 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 sc.close() sc.close sc int ab = Integer.valueOf(a + b); ab Integer.valueOf(a + b) Integer.valueOf Integer a + b a b String result = "No"; result "No" int c = 1; c 1 int d = 1; d 1 while (d <= ab) {
      if (d == ab){
        result = "Yes";
        break;
      }
      c++;
      d = c * c;
    } d <= ab d ab {
      if (d == ab){
        result = "Yes";
        break;
      }
      c++;
      d = c * c;
    } if (d == ab){
        result = "Yes";
        break;
      } d == ab d ab {
        result = "Yes";
        break;
      } result = "Yes" result "Yes" break; c++ c d = c * c d c * c c c System.out.println(result) System.out.println System.out System System.out result 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();

    sc.close();

    int ab = Integer.valueOf(a + b);
    
    String result = "No";

    int c = 1;
    int d = 1;

    while (d <= ab) {
      if (d == ab){
        result = "Yes";
        break;
      }
      c++;
      d = c * c;
    }

    System.out.println(result);

  }

} public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    String a = sc.next();
    String b = sc.next();

    sc.close();

    int ab = Integer.valueOf(a + b);
    
    String result = "No";

    int c = 1;
    int d = 1;

    while (d <= ab) {
      if (d == ab){
        result = "Yes";
        break;
      }
      c++;
      d = c * c;
    }

    System.out.println(result);

  }

} 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();

    sc.close();

    int ab = Integer.valueOf(a + b);
    
    String result = "No";

    int c = 1;
    int d = 1;

    while (d <= ab) {
      if (d == ab){
        result = "Yes";
        break;
      }
      c++;
      d = c * c;
    }

    System.out.println(result);

  }

}