import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	String t = sc.next();
      	int st = Integer.parseInt(s + t);
      	String ans = "No";
      	for(int i = 1; i <= 400; i++){
        	if(st == i*i){
            	ans = "Yes";
              	break;
            }
        }
      	System.out.println(ans);
    }
} import java.util.*; util.* java class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	String t = sc.next();
      	int st = Integer.parseInt(s + t);
      	String ans = "No";
      	for(int i = 1; i <= 400; i++){
        	if(st == i*i){
            	ans = "Yes";
              	break;
            }
        }
      	System.out.println(ans);
    }
} Main public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	String t = sc.next();
      	int st = Integer.parseInt(s + t);
      	String ans = "No";
      	for(int i = 1; i <= 400; i++){
        	if(st == i*i){
            	ans = "Yes";
              	break;
            }
        }
      	System.out.println(ans);
    } main {
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	String t = sc.next();
      	int st = Integer.parseInt(s + t);
      	String ans = "No";
      	for(int i = 1; i <= 400; i++){
        	if(st == i*i){
            	ans = "Yes";
              	break;
            }
        }
      	System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String t = sc.next(); t sc.next() sc.next sc int st = Integer.parseInt(s + t); st Integer.parseInt(s + t) Integer.parseInt Integer s + t s t String ans = "No"; ans "No" for(int i = 1; i <= 400; i++){
        	if(st == i*i){
            	ans = "Yes";
              	break;
            }
        } int i = 1; int i = 1; i 1 i <= 400 i 400 i++ i++ i {
        	if(st == i*i){
            	ans = "Yes";
              	break;
            }
        } {
        	if(st == i*i){
            	ans = "Yes";
              	break;
            }
        } if(st == i*i){
            	ans = "Yes";
              	break;
            } st == i*i st i*i i i {
            	ans = "Yes";
              	break;
            } ans = "Yes" ans "Yes" break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	String t = sc.next();
      	int st = Integer.parseInt(s + t);
      	String ans = "No";
      	for(int i = 1; i <= 400; i++){
        	if(st == i*i){
            	ans = "Yes";
              	break;
            }
        }
      	System.out.println(ans);
    }
}
