import java.util.*;
import java.util.TreeMap;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int number = Integer.valueOf(a + b).intValue();
    String ans = "No";
    for (int i = 0; i * i <= number; i++) {
      if (i * i == number) {
        ans = "Yes";
      }
    }
    System.out.println(ans);
  }
} import java.util.*; util.* java import java.util.TreeMap; TreeMap java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int number = Integer.valueOf(a + b).intValue();
    String ans = "No";
    for (int i = 0; i * i <= number; i++) {
      if (i * i == number) {
        ans = "Yes";
      }
    }
    System.out.println(ans);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int number = Integer.valueOf(a + b).intValue();
    String ans = "No";
    for (int i = 0; i * i <= number; i++) {
      if (i * i == number) {
        ans = "Yes";
      }
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int number = Integer.valueOf(a + b).intValue();
    String ans = "No";
    for (int i = 0; i * i <= number; i++) {
      if (i * i == number) {
        ans = "Yes";
      }
    }
    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc int number = Integer.valueOf(a + b).intValue(); number Integer.valueOf(a + b).intValue() Integer.valueOf(a + b).intValue Integer.valueOf(a + b) Integer.valueOf Integer a + b a b String ans = "No"; ans "No" for (int i = 0; i * i <= number; i++) {
      if (i * i == number) {
        ans = "Yes";
      }
    } int i = 0; int i = 0; i 0 i * i <= number i * i i i number i++ i++ i {
      if (i * i == number) {
        ans = "Yes";
      }
    } {
      if (i * i == number) {
        ans = "Yes";
      }
    } if (i * i == number) {
        ans = "Yes";
      } i * i == number i * i i i number {
        ans = "Yes";
      } ans = "Yes" ans "Yes" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int number = Integer.valueOf(a + b).intValue();
    String ans = "No";
    for (int i = 0; i * i <= number; i++) {
      if (i * i == number) {
        ans = "Yes";
      }
    }
    System.out.println(ans);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int number = Integer.valueOf(a + b).intValue();
    String ans = "No";
    for (int i = 0; i * i <= number; i++) {
      if (i * i == number) {
        ans = "Yes";
      }
    }
    System.out.println(ans);
  }
} Main
import java.util.*;
import java.util.TreeMap;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int number = Integer.valueOf(a + b).intValue();
    String ans = "No";
    for (int i = 0; i * i <= number; i++) {
      if (i * i == number) {
        ans = "Yes";
      }
    }
    System.out.println(ans);
  }
}
