import 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 ab = Integer.parseInt(a + b);
      	String ans = "No";
      	for(int i = 1; i <= 320; i++){
        	if(i*i == ab){
            	ans = "Yes";
              	break;
            }
        }
      	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();
      	String b = sc.next();
      	int ab = Integer.parseInt(a + b);
      	String ans = "No";
      	for(int i = 1; i <= 320; i++){
        	if(i*i == ab){
            	ans = "Yes";
              	break;
            }
        }
      	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 ab = Integer.parseInt(a + b);
      	String ans = "No";
      	for(int i = 1; i <= 320; i++){
        	if(i*i == ab){
            	ans = "Yes";
              	break;
            }
        }
      	System.out.println(ans);
    } main {
    	Scanner sc = new Scanner(System.in);
      	String a = sc.next();
      	String b = sc.next();
      	int ab = Integer.parseInt(a + b);
      	String ans = "No";
      	for(int i = 1; i <= 320; i++){
        	if(i*i == ab){
            	ans = "Yes";
              	break;
            }
        }
      	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 ab = Integer.parseInt(a + b); ab Integer.parseInt(a + b) Integer.parseInt Integer a + b a b String ans = "No"; ans "No" for(int i = 1; i <= 320; i++){
        	if(i*i == ab){
            	ans = "Yes";
              	break;
            }
        } int i = 1; int i = 1; i 1 i <= 320 i 320 i++ i++ i {
        	if(i*i == ab){
            	ans = "Yes";
              	break;
            }
        } {
        	if(i*i == ab){
            	ans = "Yes";
              	break;
            }
        } if(i*i == ab){
            	ans = "Yes";
              	break;
            } i*i == ab i*i i i ab {
            	ans = "Yes";
              	break;
            } ans = "Yes" ans "Yes" break; 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 ab = Integer.parseInt(a + b);
      	String ans = "No";
      	for(int i = 1; i <= 320; i++){
        	if(i*i == ab){
            	ans = "Yes";
              	break;
            }
        }
      	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 ab = Integer.parseInt(a + b);
      	String ans = "No";
      	for(int i = 1; i <= 320; i++){
        	if(i*i == ab){
            	ans = "Yes";
              	break;
            }
        }
      	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();
      	String b = sc.next();
      	int ab = Integer.parseInt(a + b);
      	String ans = "No";
      	for(int i = 1; i <= 320; i++){
        	if(i*i == ab){
            	ans = "Yes";
              	break;
            }
        }
      	System.out.println(ans);
    }
}