import java.util.Scanner;

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

    Scanner sc = new Scanner(System.in);
    // 1つ目の整数
    int a = sc.nextInt();
    // 2つ目の整数
    int b = sc.nextInt();

    String first = Integer.toString(a);
    String second = Integer.toString(b);
    String targetStr = first + second;

    int target = new Integer(targetStr);
    int num;
    for (int i = 1; i <= 1000; i++) {
      num = i * i;
      if (num == target) {
        System.out.println("Yes");
        return;
      }
    }
    System.out.println("No");
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    // 1つ目の整数
    int a = sc.nextInt();
    // 2つ目の整数
    int b = sc.nextInt();

    String first = Integer.toString(a);
    String second = Integer.toString(b);
    String targetStr = first + second;

    int target = new Integer(targetStr);
    int num;
    for (int i = 1; i <= 1000; i++) {
      num = i * i;
      if (num == target) {
        System.out.println("Yes");
        return;
      }
    }
    System.out.println("No");
  }
} Main public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    // 1つ目の整数
    int a = sc.nextInt();
    // 2つ目の整数
    int b = sc.nextInt();

    String first = Integer.toString(a);
    String second = Integer.toString(b);
    String targetStr = first + second;

    int target = new Integer(targetStr);
    int num;
    for (int i = 1; i <= 1000; i++) {
      num = i * i;
      if (num == target) {
        System.out.println("Yes");
        return;
      }
    }
    System.out.println("No");
  } main {

    Scanner sc = new Scanner(System.in);
    // 1つ目の整数
    int a = sc.nextInt();
    // 2つ目の整数
    int b = sc.nextInt();

    String first = Integer.toString(a);
    String second = Integer.toString(b);
    String targetStr = first + second;

    int target = new Integer(targetStr);
    int num;
    for (int i = 1; i <= 1000; i++) {
      num = i * i;
      if (num == target) {
        System.out.println("Yes");
        return;
      }
    }
    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 first = Integer.toString(a); first Integer.toString(a) Integer.toString Integer a String second = Integer.toString(b); second Integer.toString(b) Integer.toString Integer b String targetStr = first + second; targetStr first + second first second int target = new Integer(targetStr); target new Integer(targetStr) int num; num for (int i = 1; i <= 1000; i++) {
      num = i * i;
      if (num == target) {
        System.out.println("Yes");
        return;
      }
    } int i = 1; int i = 1; i 1 i <= 1000 i 1000 i++ i++ i {
      num = i * i;
      if (num == target) {
        System.out.println("Yes");
        return;
      }
    } {
      num = i * i;
      if (num == target) {
        System.out.println("Yes");
        return;
      }
    } num = i * i num i * i i i if (num == target) {
        System.out.println("Yes");
        return;
      } num == target num target {
        System.out.println("Yes");
        return;
      } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; 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) {

    Scanner sc = new Scanner(System.in);
    // 1つ目の整数
    int a = sc.nextInt();
    // 2つ目の整数
    int b = sc.nextInt();

    String first = Integer.toString(a);
    String second = Integer.toString(b);
    String targetStr = first + second;

    int target = new Integer(targetStr);
    int num;
    for (int i = 1; i <= 1000; i++) {
      num = i * i;
      if (num == target) {
        System.out.println("Yes");
        return;
      }
    }
    System.out.println("No");
  }
} public class Main {
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    // 1つ目の整数
    int a = sc.nextInt();
    // 2つ目の整数
    int b = sc.nextInt();

    String first = Integer.toString(a);
    String second = Integer.toString(b);
    String targetStr = first + second;

    int target = new Integer(targetStr);
    int num;
    for (int i = 1; i <= 1000; i++) {
      num = i * i;
      if (num == target) {
        System.out.println("Yes");
        return;
      }
    }
    System.out.println("No");
  }
} Main
import java.util.Scanner;

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

    Scanner sc = new Scanner(System.in);
    // 1つ目の整数
    int a = sc.nextInt();
    // 2つ目の整数
    int b = sc.nextInt();

    String first = Integer.toString(a);
    String second = Integer.toString(b);
    String targetStr = first + second;

    int target = new Integer(targetStr);
    int num;
    for (int i = 1; i <= 1000; i++) {
      num = i * i;
      if (num == target) {
        System.out.println("Yes");
        return;
      }
    }
    System.out.println("No");
  }
}