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 ans = "No";
    int ab = Integer.parseInt(a + b);
    for(int i=1; i<317; i++) {
      if(ab == i * i) {
        ans = "Yes";
        break;
      }
      if(ab < i * i){
        break;
      }
    }
    System.out.println(ans);
  }
} 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 ans = "No";
    int ab = Integer.parseInt(a + b);
    for(int i=1; i<317; i++) {
      if(ab == i * i) {
        ans = "Yes";
        break;
      }
      if(ab < i * i){
        break;
      }
    }
    System.out.println(ans);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();    
    String b = sc.next();
    String ans = "No";
    int ab = Integer.parseInt(a + b);
    for(int i=1; i<317; i++) {
      if(ab == i * i) {
        ans = "Yes";
        break;
      }
      if(ab < i * i){
        break;
      }
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();    
    String b = sc.next();
    String ans = "No";
    int ab = Integer.parseInt(a + b);
    for(int i=1; i<317; i++) {
      if(ab == i * i) {
        ans = "Yes";
        break;
      }
      if(ab < i * i){
        break;
      }
    }
    System.out.println(ans);
  } 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 ans = "No"; ans "No" int ab = Integer.parseInt(a + b); ab Integer.parseInt(a + b) Integer.parseInt Integer a + b a b for(int i=1; i<317; i++) {
      if(ab == i * i) {
        ans = "Yes";
        break;
      }
      if(ab < i * i){
        break;
      }
    } int i=1; int i=1; i 1 i<317 i 317 i++ i++ i {
      if(ab == i * i) {
        ans = "Yes";
        break;
      }
      if(ab < i * i){
        break;
      }
    } {
      if(ab == i * i) {
        ans = "Yes";
        break;
      }
      if(ab < i * i){
        break;
      }
    } if(ab == i * i) {
        ans = "Yes";
        break;
      } ab == i * i ab i * i i i {
        ans = "Yes";
        break;
      } ans = "Yes" ans "Yes" break; if(ab < i * i){
        break;
      } ab < i * i ab i * i i i {
        break;
      } break; System.out.println(ans) System.out.println System.out System System.out ans 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 ans = "No";
    int ab = Integer.parseInt(a + b);
    for(int i=1; i<317; i++) {
      if(ab == i * i) {
        ans = "Yes";
        break;
      }
      if(ab < i * i){
        break;
      }
    }
    System.out.println(ans);
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();    
    String b = sc.next();
    String ans = "No";
    int ab = Integer.parseInt(a + b);
    for(int i=1; i<317; i++) {
      if(ab == i * i) {
        ans = "Yes";
        break;
      }
      if(ab < i * i){
        break;
      }
    }
    System.out.println(ans);
  }
} 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 ans = "No";
    int ab = Integer.parseInt(a + b);
    for(int i=1; i<317; i++) {
      if(ab == i * i) {
        ans = "Yes";
        break;
      }
      if(ab < i * i){
        break;
      }
    }
    System.out.println(ans);
  }
}
