import java.util.Scanner;

// 8
class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ab = Integer.valueOf(String.format("%d%d", a, b));
		
		int x = 1;
		String ans = "No";
		while (ab >= x*x) {
			if(ab == x*x) { 
				ans = "Yes";
				break;
			}
			++x;
		}
		System.out.println(ans);
	}

} import java.util.Scanner; Scanner java.util class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ab = Integer.valueOf(String.format("%d%d", a, b));
		
		int x = 1;
		String ans = "No";
		while (ab >= x*x) {
			if(ab == x*x) { 
				ans = "Yes";
				break;
			}
			++x;
		}
		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 ab = Integer.valueOf(String.format("%d%d", a, b));
		
		int x = 1;
		String ans = "No";
		while (ab >= x*x) {
			if(ab == x*x) { 
				ans = "Yes";
				break;
			}
			++x;
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ab = Integer.valueOf(String.format("%d%d", a, b));
		
		int x = 1;
		String ans = "No";
		while (ab >= x*x) {
			if(ab == x*x) { 
				ans = "Yes";
				break;
			}
			++x;
		}
		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 ab = Integer.valueOf(String.format("%d%d", a, b)); ab Integer.valueOf(String.format("%d%d", a, b)) Integer.valueOf Integer String.format("%d%d", a, b) String.format String "%d%d" a b int x = 1; x 1 String ans = "No"; ans "No" while (ab >= x*x) {
			if(ab == x*x) { 
				ans = "Yes";
				break;
			}
			++x;
		} ab >= x*x ab x*x x x {
			if(ab == x*x) { 
				ans = "Yes";
				break;
			}
			++x;
		} if(ab == x*x) { 
				ans = "Yes";
				break;
			} ab == x*x ab x*x x x { 
				ans = "Yes";
				break;
			} ans = "Yes" ans "Yes" break; ++x x System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.Scanner;

// 8
class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ab = Integer.valueOf(String.format("%d%d", a, b));
		
		int x = 1;
		String ans = "No";
		while (ab >= x*x) {
			if(ab == x*x) { 
				ans = "Yes";
				break;
			}
			++x;
		}
		System.out.println(ans);
	}

}
