import java.util.*;
public class Main {
	public static void main (String[] args) {
      Scanner sc = new Scanner(System.in);
      String A = sc.next(), B = sc.next();
      String AB = A+B;
      int num = Integer.valueOf(AB);
      int sqrt = (int)Math.pow(num,0.5);
      String ans = (sqrt*sqrt == num)?"Yes" : "No";
      System.out.println(ans);
      
    }
} import java.util.*; util.* java public class Main {
	public static void main (String[] args) {
      Scanner sc = new Scanner(System.in);
      String A = sc.next(), B = sc.next();
      String AB = A+B;
      int num = Integer.valueOf(AB);
      int sqrt = (int)Math.pow(num,0.5);
      String ans = (sqrt*sqrt == num)?"Yes" : "No";
      System.out.println(ans);
      
    }
} Main public static void main (String[] args) {
      Scanner sc = new Scanner(System.in);
      String A = sc.next(), B = sc.next();
      String AB = A+B;
      int num = Integer.valueOf(AB);
      int sqrt = (int)Math.pow(num,0.5);
      String ans = (sqrt*sqrt == num)?"Yes" : "No";
      System.out.println(ans);
      
    } main {
      Scanner sc = new Scanner(System.in);
      String A = sc.next(), B = sc.next();
      String AB = A+B;
      int num = Integer.valueOf(AB);
      int sqrt = (int)Math.pow(num,0.5);
      String ans = (sqrt*sqrt == num)?"Yes" : "No";
      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 B = sc.next(); B sc.next() sc.next sc String AB = A+B; AB A+B A B int num = Integer.valueOf(AB); num Integer.valueOf(AB) Integer.valueOf Integer AB int sqrt = (int)Math.pow(num,0.5); sqrt (int)Math.pow(num,0.5) Math.pow Math num 0.5 String ans = (sqrt*sqrt == num)?"Yes" : "No"; ans (sqrt*sqrt == num)?"Yes" : "No" (sqrt*sqrt == num) sqrt*sqrt sqrt sqrt num "Yes" "No" 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(), B = sc.next();
      String AB = A+B;
      int num = Integer.valueOf(AB);
      int sqrt = (int)Math.pow(num,0.5);
      String ans = (sqrt*sqrt == num)?"Yes" : "No";
      System.out.println(ans);
      
    }
} public class Main {
	public static void main (String[] args) {
      Scanner sc = new Scanner(System.in);
      String A = sc.next(), B = sc.next();
      String AB = A+B;
      int num = Integer.valueOf(AB);
      int sqrt = (int)Math.pow(num,0.5);
      String ans = (sqrt*sqrt == num)?"Yes" : "No";
      System.out.println(ans);
      
    }
} Main
import java.util.*;
public class Main {
	public static void main (String[] args) {
      Scanner sc = new Scanner(System.in);
      String A = sc.next(), B = sc.next();
      String AB = A+B;
      int num = Integer.valueOf(AB);
      int sqrt = (int)Math.pow(num,0.5);
      String ans = (sqrt*sqrt == num)?"Yes" : "No";
      System.out.println(ans);
      
    }
}