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();
		StringBuilder sb = new StringBuilder();
		int x = Integer.parseInt(sb.append(a).append(b).toString());
		boolean flag = false;
		for (int i = 1; i * i <= x; i++ ) {
			if (i * i == x) {
				flag = true;
				break;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} 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();
		StringBuilder sb = new StringBuilder();
		int x = Integer.parseInt(sb.append(a).append(b).toString());
		boolean flag = false;
		for (int i = 1; i * i <= x; i++ ) {
			if (i * i == x) {
				flag = true;
				break;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder sb = new StringBuilder();
		int x = Integer.parseInt(sb.append(a).append(b).toString());
		boolean flag = false;
		for (int i = 1; i * i <= x; i++ ) {
			if (i * i == x) {
				flag = true;
				break;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder sb = new StringBuilder();
		int x = Integer.parseInt(sb.append(a).append(b).toString());
		boolean flag = false;
		for (int i = 1; i * i <= x; i++ ) {
			if (i * i == x) {
				flag = true;
				break;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} 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 StringBuilder sb = new StringBuilder(); sb new StringBuilder() int x = Integer.parseInt(sb.append(a).append(b).toString()); x Integer.parseInt(sb.append(a).append(b).toString()) Integer.parseInt Integer sb.append(a).append(b).toString() sb.append(a).append(b).toString sb.append(a).append(b) sb.append(a).append sb.append(a) sb.append sb a b boolean flag = false; flag false for (int i = 1; i * i <= x; i++ ) {
			if (i * i == x) {
				flag = true;
				break;
			}
		} int i = 1; int i = 1; i 1 i * i <= x i * i i i x i++ i++ i {
			if (i * i == x) {
				flag = true;
				break;
			}
		} {
			if (i * i == x) {
				flag = true;
				break;
			}
		} if (i * i == x) {
				flag = true;
				break;
			} i * i == x i * i i i x {
				flag = true;
				break;
			} flag = true flag true break; if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} flag {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" 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();
		StringBuilder sb = new StringBuilder();
		int x = Integer.parseInt(sb.append(a).append(b).toString());
		boolean flag = false;
		for (int i = 1; i * i <= x; i++ ) {
			if (i * i == x) {
				flag = true;
				break;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder sb = new StringBuilder();
		int x = Integer.parseInt(sb.append(a).append(b).toString());
		boolean flag = false;
		for (int i = 1; i * i <= x; i++ ) {
			if (i * i == x) {
				flag = true;
				break;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} 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();
		StringBuilder sb = new StringBuilder();
		int x = Integer.parseInt(sb.append(a).append(b).toString());
		boolean flag = false;
		for (int i = 1; i * i <= x; i++ ) {
			if (i * i == x) {
				flag = true;
				break;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}
