import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    String a,b;
    int c;
    boolean d = false;
    Scanner scan = new Scanner(System.in);
    a = scan.next();
    b = scan.next();
    c = Integer.parseInt(a + b);
    for(int i = 0; i <= c; i++){
      if(c == i*i){
        d = true;
        break;
      }
    }
      
    if(d){       
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    String a,b;
    int c;
    boolean d = false;
    Scanner scan = new Scanner(System.in);
    a = scan.next();
    b = scan.next();
    c = Integer.parseInt(a + b);
    for(int i = 0; i <= c; i++){
      if(c == i*i){
        d = true;
        break;
      }
    }
      
    if(d){       
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} Main public static void main(String[] args){
    String a,b;
    int c;
    boolean d = false;
    Scanner scan = new Scanner(System.in);
    a = scan.next();
    b = scan.next();
    c = Integer.parseInt(a + b);
    for(int i = 0; i <= c; i++){
      if(c == i*i){
        d = true;
        break;
      }
    }
      
    if(d){       
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  } main {
    String a,b;
    int c;
    boolean d = false;
    Scanner scan = new Scanner(System.in);
    a = scan.next();
    b = scan.next();
    c = Integer.parseInt(a + b);
    for(int i = 0; i <= c; i++){
      if(c == i*i){
        d = true;
        break;
      }
    }
      
    if(d){       
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  } String a a b; b int c; c boolean d = false; d false Scanner scan = new Scanner(System.in); scan new Scanner(System.in) a = scan.next() a scan.next() scan.next scan b = scan.next() b scan.next() scan.next scan c = Integer.parseInt(a + b) c Integer.parseInt(a + b) Integer.parseInt Integer a + b a b for(int i = 0; i <= c; i++){
      if(c == i*i){
        d = true;
        break;
      }
    } int i = 0; int i = 0; i 0 i <= c i c i++ i++ i {
      if(c == i*i){
        d = true;
        break;
      }
    } {
      if(c == i*i){
        d = true;
        break;
      }
    } if(c == i*i){
        d = true;
        break;
      } c == i*i c i*i i i {
        d = true;
        break;
      } d = true d true break; if(d){       
      System.out.println("Yes");
    }else{
      System.out.println("No");
    } d {       
      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 public class Main{
  public static void main(String[] args){
    String a,b;
    int c;
    boolean d = false;
    Scanner scan = new Scanner(System.in);
    a = scan.next();
    b = scan.next();
    c = Integer.parseInt(a + b);
    for(int i = 0; i <= c; i++){
      if(c == i*i){
        d = true;
        break;
      }
    }
      
    if(d){       
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} public class Main{
  public static void main(String[] args){
    String a,b;
    int c;
    boolean d = false;
    Scanner scan = new Scanner(System.in);
    a = scan.next();
    b = scan.next();
    c = Integer.parseInt(a + b);
    for(int i = 0; i <= c; i++){
      if(c == i*i){
        d = true;
        break;
      }
    }
      
    if(d){       
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    String a,b;
    int c;
    boolean d = false;
    Scanner scan = new Scanner(System.in);
    a = scan.next();
    b = scan.next();
    c = Integer.parseInt(a + b);
    for(int i = 0; i <= c; i++){
      if(c == i*i){
        d = true;
        break;
      }
    }
      
    if(d){       
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}