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 n = Integer.parseInt(a+b);
		boolean bl = false;
		for(int i=1; i*i<=n; i++){
			if(i*i==n){
				bl = true;
				break;
			}
		}
		System.out.println(bl==true ? "Yes" : "No");
	}
} 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 n = Integer.parseInt(a+b);
		boolean bl = false;
		for(int i=1; i*i<=n; i++){
			if(i*i==n){
				bl = true;
				break;
			}
		}
		System.out.println(bl==true ? "Yes" : "No");
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		int n = Integer.parseInt(a+b);
		boolean bl = false;
		for(int i=1; i*i<=n; i++){
			if(i*i==n){
				bl = true;
				break;
			}
		}
		System.out.println(bl==true ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		int n = Integer.parseInt(a+b);
		boolean bl = false;
		for(int i=1; i*i<=n; i++){
			if(i*i==n){
				bl = true;
				break;
			}
		}
		System.out.println(bl==true ? "Yes" : "No");
	} 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 n = Integer.parseInt(a+b); n Integer.parseInt(a+b) Integer.parseInt Integer a+b a b boolean bl = false; bl false for(int i=1; i*i<=n; i++){
			if(i*i==n){
				bl = true;
				break;
			}
		} int i=1; int i=1; i 1 i*i<=n i*i i i n i++ i++ i {
			if(i*i==n){
				bl = true;
				break;
			}
		} {
			if(i*i==n){
				bl = true;
				break;
			}
		} if(i*i==n){
				bl = true;
				break;
			} i*i==n i*i i i n {
				bl = true;
				break;
			} bl = true bl true break; System.out.println(bl==true ? "Yes" : "No") System.out.println System.out System System.out bl==true ? "Yes" : "No" bl==true bl true "Yes" "No" 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 n = Integer.parseInt(a+b);
		boolean bl = false;
		for(int i=1; i*i<=n; i++){
			if(i*i==n){
				bl = true;
				break;
			}
		}
		System.out.println(bl==true ? "Yes" : "No");
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		int n = Integer.parseInt(a+b);
		boolean bl = false;
		for(int i=1; i*i<=n; i++){
			if(i*i==n){
				bl = true;
				break;
			}
		}
		System.out.println(bl==true ? "Yes" : "No");
	}
} 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 n = Integer.parseInt(a+b);
		boolean bl = false;
		for(int i=1; i*i<=n; i++){
			if(i*i==n){
				bl = true;
				break;
			}
		}
		System.out.println(bl==true ? "Yes" : "No");
	}
}