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 c = Integer.valueOf(a+b);
		System.out.println(Math.sqrt(c) == Math.ceil(Math.sqrt(c)) ? "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 c = Integer.valueOf(a+b);
		System.out.println(Math.sqrt(c) == Math.ceil(Math.sqrt(c)) ? "Yes" : "No");
	}
} Main public static void main(String... args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		int c = Integer.valueOf(a+b);
		System.out.println(Math.sqrt(c) == Math.ceil(Math.sqrt(c)) ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		int c = Integer.valueOf(a+b);
		System.out.println(Math.sqrt(c) == Math.ceil(Math.sqrt(c)) ? "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 c = Integer.valueOf(a+b); c Integer.valueOf(a+b) Integer.valueOf Integer a+b a b System.out.println(Math.sqrt(c) == Math.ceil(Math.sqrt(c)) ? "Yes" : "No") System.out.println System.out System System.out Math.sqrt(c) == Math.ceil(Math.sqrt(c)) ? "Yes" : "No" Math.sqrt(c) == Math.ceil(Math.sqrt(c)) Math.sqrt(c) Math.sqrt Math c Math.ceil(Math.sqrt(c)) Math.ceil Math Math.sqrt(c) Math.sqrt Math c "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 c = Integer.valueOf(a+b);
		System.out.println(Math.sqrt(c) == Math.ceil(Math.sqrt(c)) ? "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 c = Integer.valueOf(a+b);
		System.out.println(Math.sqrt(c) == Math.ceil(Math.sqrt(c)) ? "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 c = Integer.valueOf(a+b);
		System.out.println(Math.sqrt(c) == Math.ceil(Math.sqrt(c)) ? "Yes" : "No");
	}
}
