import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String two = a + b;
		int twonum = Integer.parseInt(two);
		double result = Math.sqrt(twonum);
		int fin = (int)result;
		if(fin*fin == twonum ){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String two = a + b;
		int twonum = Integer.parseInt(two);
		double result = Math.sqrt(twonum);
		int fin = (int)result;
		if(fin*fin == twonum ){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String two = a + b;
		int twonum = Integer.parseInt(two);
		double result = Math.sqrt(twonum);
		int fin = (int)result;
		if(fin*fin == twonum ){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	} main {
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String two = a + b;
		int twonum = Integer.parseInt(two);
		double result = Math.sqrt(twonum);
		int fin = (int)result;
		if(fin*fin == twonum ){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String a = scan.next(); a scan.next() scan.next scan String b = scan.next(); b scan.next() scan.next scan String two = a + b; two a + b a b int twonum = Integer.parseInt(two); twonum Integer.parseInt(two) Integer.parseInt Integer two double result = Math.sqrt(twonum); result Math.sqrt(twonum) Math.sqrt Math twonum int fin = (int)result; fin (int)result if(fin*fin == twonum ){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} fin*fin == twonum fin*fin fin fin twonum {
			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 scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String two = a + b;
		int twonum = Integer.parseInt(two);
		double result = Math.sqrt(twonum);
		int fin = (int)result;
		if(fin*fin == twonum ){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String two = a + b;
		int twonum = Integer.parseInt(two);
		double result = Math.sqrt(twonum);
		int fin = (int)result;
		if(fin*fin == twonum ){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String two = a + b;
		int twonum = Integer.parseInt(two);
		double result = Math.sqrt(twonum);
		int fin = (int)result;
		if(fin*fin == twonum ){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	}

}
