
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		String a = String.valueOf(scan.nextInt());
		String b = String.valueOf(scan.nextInt());
		int c = Integer.valueOf(a.concat(b));
		
		int d = (int) Math.sqrt(c);
		if (Math.pow(d, 2) == c) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		String a = String.valueOf(scan.nextInt());
		String b = String.valueOf(scan.nextInt());
		int c = Integer.valueOf(a.concat(b));
		
		int d = (int) Math.sqrt(c);
		if (Math.pow(d, 2) == c) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		String a = String.valueOf(scan.nextInt());
		String b = String.valueOf(scan.nextInt());
		int c = Integer.valueOf(a.concat(b));
		
		int d = (int) Math.sqrt(c);
		if (Math.pow(d, 2) == c) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {

		Scanner scan = new Scanner(System.in);
		String a = String.valueOf(scan.nextInt());
		String b = String.valueOf(scan.nextInt());
		int c = Integer.valueOf(a.concat(b));
		
		int d = (int) Math.sqrt(c);
		if (Math.pow(d, 2) == c) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String a = String.valueOf(scan.nextInt()); a String.valueOf(scan.nextInt()) String.valueOf String scan.nextInt() scan.nextInt scan String b = String.valueOf(scan.nextInt()); b String.valueOf(scan.nextInt()) String.valueOf String scan.nextInt() scan.nextInt scan int c = Integer.valueOf(a.concat(b)); c Integer.valueOf(a.concat(b)) Integer.valueOf Integer a.concat(b) a.concat a b int d = (int) Math.sqrt(c); d (int) Math.sqrt(c) Math.sqrt Math c if (Math.pow(d, 2) == c) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} Math.pow(d, 2) == c Math.pow(d, 2) Math.pow Math d 2 c {
			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 = String.valueOf(scan.nextInt());
		String b = String.valueOf(scan.nextInt());
		int c = Integer.valueOf(a.concat(b));
		
		int d = (int) Math.sqrt(c);
		if (Math.pow(d, 2) == c) {
			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 = String.valueOf(scan.nextInt());
		String b = String.valueOf(scan.nextInt());
		int c = Integer.valueOf(a.concat(b));
		
		int d = (int) Math.sqrt(c);
		if (Math.pow(d, 2) == c) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main

import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		String a = String.valueOf(scan.nextInt());
		String b = String.valueOf(scan.nextInt());
		int c = Integer.valueOf(a.concat(b));
		
		int d = (int) Math.sqrt(c);
		if (Math.pow(d, 2) == c) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}
