import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
String st=Integer.toString(b);
int suu=st.length();

int c=1;

for(int i=1;i<=suu;i++){
	c=c*10;
}
c=a*c+b;
double y=c;
double x=Math.sqrt(y);

if(x%1==0){
	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 sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
String st=Integer.toString(b);
int suu=st.length();

int c=1;

for(int i=1;i<=suu;i++){
	c=c*10;
}
c=a*c+b;
double y=c;
double x=Math.sqrt(y);

if(x%1==0){
	System.out.println("Yes");
}else{
	System.out.println("No");
}

	}} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
String st=Integer.toString(b);
int suu=st.length();

int c=1;

for(int i=1;i<=suu;i++){
	c=c*10;
}
c=a*c+b;
double y=c;
double x=Math.sqrt(y);

if(x%1==0){
	System.out.println("Yes");
}else{
	System.out.println("No");
}

	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
String st=Integer.toString(b);
int suu=st.length();

int c=1;

for(int i=1;i<=suu;i++){
	c=c*10;
}
c=a*c+b;
double y=c;
double x=Math.sqrt(y);

if(x%1==0){
	System.out.println("Yes");
}else{
	System.out.println("No");
}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc String st=Integer.toString(b); st Integer.toString(b) Integer.toString Integer b int suu=st.length(); suu st.length() st.length st int c=1; c 1 for(int i=1;i<=suu;i++){
	c=c*10;
} int i=1; int i=1; i 1 i<=suu i suu i++ i++ i {
	c=c*10;
} {
	c=c*10;
} c=c*10 c c*10 c 10 c=a*c+b c a*c+b a*c a c b double y=c; y c double x=Math.sqrt(y); x Math.sqrt(y) Math.sqrt Math y if(x%1==0){
	System.out.println("Yes");
}else{
	System.out.println("No");
} x%1==0 x%1 x 1 0 {
	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 sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
String st=Integer.toString(b);
int suu=st.length();

int c=1;

for(int i=1;i<=suu;i++){
	c=c*10;
}
c=a*c+b;
double y=c;
double x=Math.sqrt(y);

if(x%1==0){
	System.out.println("Yes");
}else{
	System.out.println("No");
}

	}} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
String st=Integer.toString(b);
int suu=st.length();

int c=1;

for(int i=1;i<=suu;i++){
	c=c*10;
}
c=a*c+b;
double y=c;
double x=Math.sqrt(y);

if(x%1==0){
	System.out.println("Yes");
}else{
	System.out.println("No");
}

	}} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
String st=Integer.toString(b);
int suu=st.length();

int c=1;

for(int i=1;i<=suu;i++){
	c=c*10;
}
c=a*c+b;
double y=c;
double x=Math.sqrt(y);

if(x%1==0){
	System.out.println("Yes");
}else{
	System.out.println("No");
}

	}}