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 target = Integer.parseInt("" + a + b);
       
        String ans = "";
        int value = 1;
        while(true) {
          int i = value * value;
          if (i == target) {
            ans = "Yes";
            break;
          } else if (i > target) {
            ans = "No";
            break;
          }
          value++;
        }
    
		// 出力
		System.out.println(ans);
	}
} 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 target = Integer.parseInt("" + a + b);
       
        String ans = "";
        int value = 1;
        while(true) {
          int i = value * value;
          if (i == target) {
            ans = "Yes";
            break;
          } else if (i > target) {
            ans = "No";
            break;
          }
          value++;
        }
    
		// 出力
		System.out.println(ans);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();
        int target = Integer.parseInt("" + a + b);
       
        String ans = "";
        int value = 1;
        while(true) {
          int i = value * value;
          if (i == target) {
            ans = "Yes";
            break;
          } else if (i > target) {
            ans = "No";
            break;
          }
          value++;
        }
    
		// 出力
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
    
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();
        int target = Integer.parseInt("" + a + b);
       
        String ans = "";
        int value = 1;
        while(true) {
          int i = value * value;
          if (i == target) {
            ans = "Yes";
            break;
          } else if (i > target) {
            ans = "No";
            break;
          }
          value++;
        }
    
		// 出力
		System.out.println(ans);
	} 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 target = Integer.parseInt("" + a + b); target Integer.parseInt("" + a + b) Integer.parseInt Integer "" + a + b "" + a + b "" a b String ans = ""; ans "" int value = 1; value 1 while(true) {
          int i = value * value;
          if (i == target) {
            ans = "Yes";
            break;
          } else if (i > target) {
            ans = "No";
            break;
          }
          value++;
        } true {
          int i = value * value;
          if (i == target) {
            ans = "Yes";
            break;
          } else if (i > target) {
            ans = "No";
            break;
          }
          value++;
        } int i = value * value; i value * value value value if (i == target) {
            ans = "Yes";
            break;
          } else if (i > target) {
            ans = "No";
            break;
          } i == target i target {
            ans = "Yes";
            break;
          } ans = "Yes" ans "Yes" break; if (i > target) {
            ans = "No";
            break;
          } i > target i target {
            ans = "No";
            break;
          } ans = "No" ans "No" break; value++ value 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);
    
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();
        int target = Integer.parseInt("" + a + b);
       
        String ans = "";
        int value = 1;
        while(true) {
          int i = value * value;
          if (i == target) {
            ans = "Yes";
            break;
          } else if (i > target) {
            ans = "No";
            break;
          }
          value++;
        }
    
		// 出力
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();
        int target = Integer.parseInt("" + a + b);
       
        String ans = "";
        int value = 1;
        while(true) {
          int i = value * value;
          if (i == target) {
            ans = "Yes";
            break;
          } else if (i > target) {
            ans = "No";
            break;
          }
          value++;
        }
    
		// 出力
		System.out.println(ans);
	}
} 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 target = Integer.parseInt("" + a + b);
       
        String ans = "";
        int value = 1;
        while(true) {
          int i = value * value;
          if (i == target) {
            ans = "Yes";
            break;
          } else if (i > target) {
            ans = "No";
            break;
          }
          value++;
        }
    
		// 出力
		System.out.println(ans);
	}
}