import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    s += sc.next();
    int a = Integer.parseInt(s);
    double d = Math.sqrt(a);
    String ds = Double.toString(d);
    int dotindex = ds.indexOf(".");

    if (ds.substring(dotindex + 1).replaceAll("0", "").isEmpty()) {
      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) {

    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    s += sc.next();
    int a = Integer.parseInt(s);
    double d = Math.sqrt(a);
    String ds = Double.toString(d);
    int dotindex = ds.indexOf(".");

    if (ds.substring(dotindex + 1).replaceAll("0", "").isEmpty()) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

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

    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    s += sc.next();
    int a = Integer.parseInt(s);
    double d = Math.sqrt(a);
    String ds = Double.toString(d);
    int dotindex = ds.indexOf(".");

    if (ds.substring(dotindex + 1).replaceAll("0", "").isEmpty()) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  } main {

    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    s += sc.next();
    int a = Integer.parseInt(s);
    double d = Math.sqrt(a);
    String ds = Double.toString(d);
    int dotindex = ds.indexOf(".");

    if (ds.substring(dotindex + 1).replaceAll("0", "").isEmpty()) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc s += sc.next() s sc.next() sc.next sc int a = Integer.parseInt(s); a Integer.parseInt(s) Integer.parseInt Integer s double d = Math.sqrt(a); d Math.sqrt(a) Math.sqrt Math a String ds = Double.toString(d); ds Double.toString(d) Double.toString Double d int dotindex = ds.indexOf("."); dotindex ds.indexOf(".") ds.indexOf ds "." if (ds.substring(dotindex + 1).replaceAll("0", "").isEmpty()) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } ds.substring(dotindex + 1).replaceAll("0", "").isEmpty() ds.substring(dotindex + 1).replaceAll("0", "").isEmpty ds.substring(dotindex + 1).replaceAll("0", "") ds.substring(dotindex + 1).replaceAll ds.substring(dotindex + 1) ds.substring ds dotindex + 1 dotindex 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) {

    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    s += sc.next();
    int a = Integer.parseInt(s);
    double d = Math.sqrt(a);
    String ds = Double.toString(d);
    int dotindex = ds.indexOf(".");

    if (ds.substring(dotindex + 1).replaceAll("0", "").isEmpty()) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }
} public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    s += sc.next();
    int a = Integer.parseInt(s);
    double d = Math.sqrt(a);
    String ds = Double.toString(d);
    int dotindex = ds.indexOf(".");

    if (ds.substring(dotindex + 1).replaceAll("0", "").isEmpty()) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }
} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    s += sc.next();
    int a = Integer.parseInt(s);
    double d = Math.sqrt(a);
    String ds = Double.toString(d);
    int dotindex = ds.indexOf(".");

    if (ds.substring(dotindex + 1).replaceAll("0", "").isEmpty()) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }
}