import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a, b, c;
		int d;
		a = sc.next();
		b = sc.next();
		c = a.concat(b);
		d = Integer.parseInt(c);
		for (int i = 0; i < d / 2; i++) {
			if (i * i == d) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
		sc.close();
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a, b, c;
		int d;
		a = sc.next();
		b = sc.next();
		c = a.concat(b);
		d = Integer.parseInt(c);
		for (int i = 0; i < d / 2; i++) {
			if (i * i == d) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a, b, c;
		int d;
		a = sc.next();
		b = sc.next();
		c = a.concat(b);
		d = Integer.parseInt(c);
		for (int i = 0; i < d / 2; i++) {
			if (i * i == d) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		String a, b, c;
		int d;
		a = sc.next();
		b = sc.next();
		c = a.concat(b);
		d = Integer.parseInt(c);
		for (int i = 0; i < d / 2; i++) {
			if (i * i == d) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a a b b c; c int d; d a = sc.next() a sc.next() sc.next sc b = sc.next() b sc.next() sc.next sc c = a.concat(b) c a.concat(b) a.concat a b d = Integer.parseInt(c) d Integer.parseInt(c) Integer.parseInt Integer c for (int i = 0; i < d / 2; i++) {
			if (i * i == d) {
				System.out.println("Yes");
				return;
			}
		} int i = 0; int i = 0; i 0 i < d / 2 i d / 2 d 2 i++ i++ i {
			if (i * i == d) {
				System.out.println("Yes");
				return;
			}
		} {
			if (i * i == d) {
				System.out.println("Yes");
				return;
			}
		} if (i * i == d) {
				System.out.println("Yes");
				return;
			} i * i == d i * i i i d {
				System.out.println("Yes");
				return;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a, b, c;
		int d;
		a = sc.next();
		b = sc.next();
		c = a.concat(b);
		d = Integer.parseInt(c);
		for (int i = 0; i < d / 2; i++) {
			if (i * i == d) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
		sc.close();
	}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a, b, c;
		int d;
		a = sc.next();
		b = sc.next();
		c = a.concat(b);
		d = Integer.parseInt(c);
		for (int i = 0; i < d / 2; i++) {
			if (i * i == d) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
		sc.close();
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a, b, c;
		int d;
		a = sc.next();
		b = sc.next();
		c = a.concat(b);
		d = Integer.parseInt(c);
		for (int i = 0; i < d / 2; i++) {
			if (i * i == d) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
		sc.close();
	}

}
