import java.util.*;
import java.util.Collections;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String a = sc.next() + sc.next();
    double b = Math.sqrt(Integer.parseInt(a));
    if (b == Math.floor(b)) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
} import java.util.*; util.* java import java.util.Collections; Collections java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String a = sc.next() + sc.next();
    double b = Math.sqrt(Integer.parseInt(a));
    if (b == Math.floor(b)) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String a = sc.next() + sc.next();
    double b = Math.sqrt(Integer.parseInt(a));
    if (b == Math.floor(b)) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String a = sc.next() + sc.next();
    double b = Math.sqrt(Integer.parseInt(a));
    if (b == Math.floor(b)) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next() + sc.next(); a sc.next() + sc.next() sc.next() sc.next sc sc.next() sc.next sc double b = Math.sqrt(Integer.parseInt(a)); b Math.sqrt(Integer.parseInt(a)) Math.sqrt Math Integer.parseInt(a) Integer.parseInt Integer a if (b == Math.floor(b)) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } b == Math.floor(b) b Math.floor(b) Math.floor Math b {
      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 a = sc.next() + sc.next();
    double b = Math.sqrt(Integer.parseInt(a));
    if (b == Math.floor(b)) {
      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 a = sc.next() + sc.next();
    double b = Math.sqrt(Integer.parseInt(a));
    if (b == Math.floor(b)) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
} Main
import java.util.*;
import java.util.Collections;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String a = sc.next() + sc.next();
    double b = Math.sqrt(Integer.parseInt(a));
    if (b == Math.floor(b)) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
}
