import java.util.Scanner;

public class Main {

	public static void main(String... nui) {
		
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String b = sc.next();
		
		a += b;
		
		int s = Integer.parseInt(a);
		
		System.out.println((Math.sqrt(s) == (int)Math.sqrt(s)) ? "Yes" : "No");
		
	}

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

	public static void main(String... nui) {
		
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String b = sc.next();
		
		a += b;
		
		int s = Integer.parseInt(a);
		
		System.out.println((Math.sqrt(s) == (int)Math.sqrt(s)) ? "Yes" : "No");
		
	}

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

	public static void main(String... nui) {
		
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String b = sc.next();
		
		a += b;
		
		int s = Integer.parseInt(a);
		
		System.out.println((Math.sqrt(s) == (int)Math.sqrt(s)) ? "Yes" : "No");
		
	}

} public class Main {

	public static void main(String... nui) {
		
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String b = sc.next();
		
		a += b;
		
		int s = Integer.parseInt(a);
		
		System.out.println((Math.sqrt(s) == (int)Math.sqrt(s)) ? "Yes" : "No");
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String... nui) {
		
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String b = sc.next();
		
		a += b;
		
		int s = Integer.parseInt(a);
		
		System.out.println((Math.sqrt(s) == (int)Math.sqrt(s)) ? "Yes" : "No");
		
	}

}