import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String a = s.next();
		String b = s.next();

		int X = Integer.parseInt(a + b);
		double Y = Math.sqrt(X);
		int Z = (int) Y;

		if (Y == Z) {
			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 s = new Scanner(System.in);
		String a = s.next();
		String b = s.next();

		int X = Integer.parseInt(a + b);
		double Y = Math.sqrt(X);
		int Z = (int) Y;

		if (Y == Z) {
			System.out.println("Yes");
		} else{
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String a = s.next();
		String b = s.next();

		int X = Integer.parseInt(a + b);
		double Y = Math.sqrt(X);
		int Z = (int) Y;

		if (Y == Z) {
			System.out.println("Yes");
		} else{
			System.out.println("No");
		}
	} main {
		Scanner s = new Scanner(System.in);
		String a = s.next();
		String b = s.next();

		int X = Integer.parseInt(a + b);
		double Y = Math.sqrt(X);
		int Z = (int) Y;

		if (Y == Z) {
			System.out.println("Yes");
		} else{
			System.out.println("No");
		}
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) String a = s.next(); a s.next() s.next s String b = s.next(); b s.next() s.next s int X = Integer.parseInt(a + b); X Integer.parseInt(a + b) Integer.parseInt Integer a + b a b double Y = Math.sqrt(X); Y Math.sqrt(X) Math.sqrt Math X int Z = (int) Y; Z (int) Y if (Y == Z) {
			System.out.println("Yes");
		} else{
			System.out.println("No");
		} Y == Z Y Z {
			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 s = new Scanner(System.in);
		String a = s.next();
		String b = s.next();

		int X = Integer.parseInt(a + b);
		double Y = Math.sqrt(X);
		int Z = (int) Y;

		if (Y == Z) {
			System.out.println("Yes");
		} else{
			System.out.println("No");
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String a = s.next();
		String b = s.next();

		int X = Integer.parseInt(a + b);
		double Y = Math.sqrt(X);
		int Z = (int) Y;

		if (Y == Z) {
			System.out.println("Yes");
		} else{
			System.out.println("No");
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String a = s.next();
		String b = s.next();

		int X = Integer.parseInt(a + b);
		double Y = Math.sqrt(X);
		int Z = (int) Y;

		if (Y == Z) {
			System.out.println("Yes");
		} else{
			System.out.println("No");
		}
	}
}