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