import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = 0;
      if(b<=9) c = a*10+b;
      else if(b <= 99) c = a*100+b;
      else if(b == 100) c = a*1000+100;
      
      int d = (int) Math.sqrt(c);
      
      if(d*d == c) System.out.println("Yes");
      else System.out.println("No");
    }
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = 0;
      if(b<=9) c = a*10+b;
      else if(b <= 99) c = a*100+b;
      else if(b == 100) c = a*1000+100;
      
      int d = (int) Math.sqrt(c);
      
      if(d*d == c) System.out.println("Yes");
      else System.out.println("No");
    }
} Main public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = 0;
      if(b<=9) c = a*10+b;
      else if(b <= 99) c = a*100+b;
      else if(b == 100) c = a*1000+100;
      
      int d = (int) Math.sqrt(c);
      
      if(d*d == c) System.out.println("Yes");
      else System.out.println("No");
    } main {
    	Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = 0;
      if(b<=9) c = a*10+b;
      else if(b <= 99) c = a*100+b;
      else if(b == 100) c = a*1000+100;
      
      int d = (int) Math.sqrt(c);
      
      if(d*d == c) System.out.println("Yes");
      else System.out.println("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = 0; c 0 if(b<=9) c = a*10+b;
      else if(b <= 99) c = a*100+b;
      else if(b == 100) c = a*1000+100; b<=9 b 9 c = a*10+b c a*10+b a*10 a 10 b if(b <= 99) c = a*100+b;
      else if(b == 100) c = a*1000+100; b <= 99 b 99 c = a*100+b c a*100+b a*100 a 100 b if(b == 100) c = a*1000+100; b == 100 b 100 c = a*1000+100 c a*1000+100 a*1000 a 1000 100 int d = (int) Math.sqrt(c); d (int) Math.sqrt(c) Math.sqrt Math c if(d*d == c) System.out.println("Yes");
      else System.out.println("No"); d*d == c d*d d d c System.out.println("Yes") System.out.println System.out System System.out "Yes" 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);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = 0;
      if(b<=9) c = a*10+b;
      else if(b <= 99) c = a*100+b;
      else if(b == 100) c = a*1000+100;
      
      int d = (int) Math.sqrt(c);
      
      if(d*d == c) System.out.println("Yes");
      else System.out.println("No");
    }
} public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = 0;
      if(b<=9) c = a*10+b;
      else if(b <= 99) c = a*100+b;
      else if(b == 100) c = a*1000+100;
      
      int d = (int) Math.sqrt(c);
      
      if(d*d == c) System.out.println("Yes");
      else System.out.println("No");
    }
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = 0;
      if(b<=9) c = a*10+b;
      else if(b <= 99) c = a*100+b;
      else if(b == 100) c = a*1000+100;
      
      int d = (int) Math.sqrt(c);
      
      if(d*d == c) System.out.println("Yes");
      else System.out.println("No");
    }
}