import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    String a = scanner.next();
    String b = scanner.next();
    int num = Integer.parseInt(a + b);

    Double d = Math.sqrt(num);
    String dStr = d.toString();
    String sp[] = dStr.split("\\.");

    if(sp[1].equals("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) {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    String a = scanner.next();
    String b = scanner.next();
    int num = Integer.parseInt(a + b);

    Double d = Math.sqrt(num);
    String dStr = d.toString();
    String sp[] = dStr.split("\\.");

    if(sp[1].equals("0")) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

} Main public static void main(String[] args) {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    String a = scanner.next();
    String b = scanner.next();
    int num = Integer.parseInt(a + b);

    Double d = Math.sqrt(num);
    String dStr = d.toString();
    String sp[] = dStr.split("\\.");

    if(sp[1].equals("0")) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  } main {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    String a = scanner.next();
    String b = scanner.next();
    int num = Integer.parseInt(a + b);

    Double d = Math.sqrt(num);
    String dStr = d.toString();
    String sp[] = dStr.split("\\.");

    if(sp[1].equals("0")) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String a = scanner.next(); a scanner.next() scanner.next scanner String b = scanner.next(); b scanner.next() scanner.next scanner int num = Integer.parseInt(a + b); num Integer.parseInt(a + b) Integer.parseInt Integer a + b a b Double d = Math.sqrt(num); d Math.sqrt(num) Math.sqrt Math num String dStr = d.toString(); dStr d.toString() d.toString d String sp[] = dStr.split("\\."); sp dStr.split("\\.") dStr.split dStr "\\." if(sp[1].equals("0")) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } sp[1].equals("0") sp[1].equals sp[1] sp 1 "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) {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    String a = scanner.next();
    String b = scanner.next();
    int num = Integer.parseInt(a + b);

    Double d = Math.sqrt(num);
    String dStr = d.toString();
    String sp[] = dStr.split("\\.");

    if(sp[1].equals("0")) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

} public class Main {

  public static void main(String[] args) {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    String a = scanner.next();
    String b = scanner.next();
    int num = Integer.parseInt(a + b);

    Double d = Math.sqrt(num);
    String dStr = d.toString();
    String sp[] = dStr.split("\\.");

    if(sp[1].equals("0")) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    String a = scanner.next();
    String b = scanner.next();
    int num = Integer.parseInt(a + b);

    Double d = Math.sqrt(num);
    String dStr = d.toString();
    String sp[] = dStr.split("\\.");

    if(sp[1].equals("0")) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

}
