
import java.util.Scanner;

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


    Scanner sc = new Scanner(System.in);
    // get a integer

    int a = sc.nextInt();
//    System.out.println(" integer is " + N);
    int b = sc.nextInt();
    int digitOfB = (int) (Math.log10(b) +1);
    int concatenationOfAb = (int) (a * Math.pow( 10, digitOfB ) + b);
    int sqrt =(int) Math.sqrt(concatenationOfAb);
    if(sqrt*sqrt == concatenationOfAb ){
      System.out.print("Yes");
    }else {
      System.out.print("No");
    }

  };

} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {


    Scanner sc = new Scanner(System.in);
    // get a integer

    int a = sc.nextInt();
//    System.out.println(" integer is " + N);
    int b = sc.nextInt();
    int digitOfB = (int) (Math.log10(b) +1);
    int concatenationOfAb = (int) (a * Math.pow( 10, digitOfB ) + b);
    int sqrt =(int) Math.sqrt(concatenationOfAb);
    if(sqrt*sqrt == concatenationOfAb ){
      System.out.print("Yes");
    }else {
      System.out.print("No");
    }

  };

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


    Scanner sc = new Scanner(System.in);
    // get a integer

    int a = sc.nextInt();
//    System.out.println(" integer is " + N);
    int b = sc.nextInt();
    int digitOfB = (int) (Math.log10(b) +1);
    int concatenationOfAb = (int) (a * Math.pow( 10, digitOfB ) + b);
    int sqrt =(int) Math.sqrt(concatenationOfAb);
    if(sqrt*sqrt == concatenationOfAb ){
      System.out.print("Yes");
    }else {
      System.out.print("No");
    }

  } main {


    Scanner sc = new Scanner(System.in);
    // get a integer

    int a = sc.nextInt();
//    System.out.println(" integer is " + N);
    int b = sc.nextInt();
    int digitOfB = (int) (Math.log10(b) +1);
    int concatenationOfAb = (int) (a * Math.pow( 10, digitOfB ) + b);
    int sqrt =(int) Math.sqrt(concatenationOfAb);
    if(sqrt*sqrt == concatenationOfAb ){
      System.out.print("Yes");
    }else {
      System.out.print("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 int digitOfB = (int) (Math.log10(b) +1); digitOfB (int) (Math.log10(b) +1) Math.log10(b) Math.log10 Math b 1 int concatenationOfAb = (int) (a * Math.pow( 10, digitOfB ) + b); concatenationOfAb (int) (a * Math.pow( 10, digitOfB ) + b) a * Math.pow( 10, digitOfB ) a Math.pow( 10, digitOfB ) Math.pow Math 10 digitOfB b int sqrt =(int) Math.sqrt(concatenationOfAb); sqrt (int) Math.sqrt(concatenationOfAb) Math.sqrt Math concatenationOfAb if(sqrt*sqrt == concatenationOfAb ){
      System.out.print("Yes");
    }else {
      System.out.print("No");
    } sqrt*sqrt == concatenationOfAb sqrt*sqrt sqrt sqrt concatenationOfAb {
      System.out.print("Yes");
    } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
      System.out.print("No");
    } System.out.print("No") System.out.print System.out System System.out "No" String[] args args public class Main {
  public static void main(String[] args) {


    Scanner sc = new Scanner(System.in);
    // get a integer

    int a = sc.nextInt();
//    System.out.println(" integer is " + N);
    int b = sc.nextInt();
    int digitOfB = (int) (Math.log10(b) +1);
    int concatenationOfAb = (int) (a * Math.pow( 10, digitOfB ) + b);
    int sqrt =(int) Math.sqrt(concatenationOfAb);
    if(sqrt*sqrt == concatenationOfAb ){
      System.out.print("Yes");
    }else {
      System.out.print("No");
    }

  };

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


    Scanner sc = new Scanner(System.in);
    // get a integer

    int a = sc.nextInt();
//    System.out.println(" integer is " + N);
    int b = sc.nextInt();
    int digitOfB = (int) (Math.log10(b) +1);
    int concatenationOfAb = (int) (a * Math.pow( 10, digitOfB ) + b);
    int sqrt =(int) Math.sqrt(concatenationOfAb);
    if(sqrt*sqrt == concatenationOfAb ){
      System.out.print("Yes");
    }else {
      System.out.print("No");
    }

  };

} Main

import java.util.Scanner;

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


    Scanner sc = new Scanner(System.in);
    // get a integer

    int a = sc.nextInt();
//    System.out.println(" integer is " + N);
    int b = sc.nextInt();
    int digitOfB = (int) (Math.log10(b) +1);
    int concatenationOfAb = (int) (a * Math.pow( 10, digitOfB ) + b);
    int sqrt =(int) Math.sqrt(concatenationOfAb);
    if(sqrt*sqrt == concatenationOfAb ){
      System.out.print("Yes");
    }else {
      System.out.print("No");
    }

  };

}
