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