import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    final Scanner scanner = new Scanner(System.in);

    final int a = scanner.nextInt();
    final int b = scanner.nextInt();
    final int value = Integer.parseInt(Integer.toString(a) + Integer.toString(b));

    final int lowerSqrt = (int) Math.sqrt(value);
    if (value % lowerSqrt == 0) {
      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) {

    final Scanner scanner = new Scanner(System.in);

    final int a = scanner.nextInt();
    final int b = scanner.nextInt();
    final int value = Integer.parseInt(Integer.toString(a) + Integer.toString(b));

    final int lowerSqrt = (int) Math.sqrt(value);
    if (value % lowerSqrt == 0) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

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

    final Scanner scanner = new Scanner(System.in);

    final int a = scanner.nextInt();
    final int b = scanner.nextInt();
    final int value = Integer.parseInt(Integer.toString(a) + Integer.toString(b));

    final int lowerSqrt = (int) Math.sqrt(value);
    if (value % lowerSqrt == 0) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  } main {

    final Scanner scanner = new Scanner(System.in);

    final int a = scanner.nextInt();
    final int b = scanner.nextInt();
    final int value = Integer.parseInt(Integer.toString(a) + Integer.toString(b));

    final int lowerSqrt = (int) Math.sqrt(value);
    if (value % lowerSqrt == 0) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  } final Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) final int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner final int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner final int value = Integer.parseInt(Integer.toString(a) + Integer.toString(b)); value Integer.parseInt(Integer.toString(a) + Integer.toString(b)) Integer.parseInt Integer Integer.toString(a) + Integer.toString(b) Integer.toString(a) Integer.toString Integer a Integer.toString(b) Integer.toString Integer b final int lowerSqrt = (int) Math.sqrt(value); lowerSqrt (int) Math.sqrt(value) Math.sqrt Math value if (value % lowerSqrt == 0) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } value % lowerSqrt == 0 value % lowerSqrt value lowerSqrt 0 {
      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) {

    final Scanner scanner = new Scanner(System.in);

    final int a = scanner.nextInt();
    final int b = scanner.nextInt();
    final int value = Integer.parseInt(Integer.toString(a) + Integer.toString(b));

    final int lowerSqrt = (int) Math.sqrt(value);
    if (value % lowerSqrt == 0) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

} public class Main {

  public static void main(String[] args) {

    final Scanner scanner = new Scanner(System.in);

    final int a = scanner.nextInt();
    final int b = scanner.nextInt();
    final int value = Integer.parseInt(Integer.toString(a) + Integer.toString(b));

    final int lowerSqrt = (int) Math.sqrt(value);
    if (value % lowerSqrt == 0) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    final Scanner scanner = new Scanner(System.in);

    final int a = scanner.nextInt();
    final int b = scanner.nextInt();
    final int value = Integer.parseInt(Integer.toString(a) + Integer.toString(b));

    final int lowerSqrt = (int) Math.sqrt(value);
    if (value % lowerSqrt == 0) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

}
