import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);

		int input = Integer.parseInt(stdin.next() + stdin.next());
		int rePow = (int)Math.pow((int)Math.sqrt(input), 2);
		System.out.println((input == rePow) ? "Yes" : "No");
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);

		int input = Integer.parseInt(stdin.next() + stdin.next());
		int rePow = (int)Math.pow((int)Math.sqrt(input), 2);
		System.out.println((input == rePow) ? "Yes" : "No");
	}
} Main public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);

		int input = Integer.parseInt(stdin.next() + stdin.next());
		int rePow = (int)Math.pow((int)Math.sqrt(input), 2);
		System.out.println((input == rePow) ? "Yes" : "No");
	} main {
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);

		int input = Integer.parseInt(stdin.next() + stdin.next());
		int rePow = (int)Math.pow((int)Math.sqrt(input), 2);
		System.out.println((input == rePow) ? "Yes" : "No");
	} @SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) int input = Integer.parseInt(stdin.next() + stdin.next()); input Integer.parseInt(stdin.next() + stdin.next()) Integer.parseInt Integer stdin.next() + stdin.next() stdin.next() stdin.next stdin stdin.next() stdin.next stdin int rePow = (int)Math.pow((int)Math.sqrt(input), 2); rePow (int)Math.pow((int)Math.sqrt(input), 2) Math.pow Math (int)Math.sqrt(input) Math.sqrt Math input 2 System.out.println((input == rePow) ? "Yes" : "No") System.out.println System.out System System.out (input == rePow) ? "Yes" : "No" (input == rePow) input rePow "Yes" "No" String[] args args public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);

		int input = Integer.parseInt(stdin.next() + stdin.next());
		int rePow = (int)Math.pow((int)Math.sqrt(input), 2);
		System.out.println((input == rePow) ? "Yes" : "No");
	}
} public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);

		int input = Integer.parseInt(stdin.next() + stdin.next());
		int rePow = (int)Math.pow((int)Math.sqrt(input), 2);
		System.out.println((input == rePow) ? "Yes" : "No");
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);

		int input = Integer.parseInt(stdin.next() + stdin.next());
		int rePow = (int)Math.pow((int)Math.sqrt(input), 2);
		System.out.println((input == rePow) ? "Yes" : "No");
	}
}
