import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String rezult;
		rezult = "No";
		int aPlusbOfSuuti = Integer.parseInt(a + b);
		for(int num = 1;num <= 1000;num++){
			if(aPlusbOfSuuti == num*num){
				rezult = "Yes";
				break;
			}
		}
		System.out.println(rezult);
	}

} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String rezult;
		rezult = "No";
		int aPlusbOfSuuti = Integer.parseInt(a + b);
		for(int num = 1;num <= 1000;num++){
			if(aPlusbOfSuuti == num*num){
				rezult = "Yes";
				break;
			}
		}
		System.out.println(rezult);
	}

} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String rezult;
		rezult = "No";
		int aPlusbOfSuuti = Integer.parseInt(a + b);
		for(int num = 1;num <= 1000;num++){
			if(aPlusbOfSuuti == num*num){
				rezult = "Yes";
				break;
			}
		}
		System.out.println(rezult);
	} main {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String rezult;
		rezult = "No";
		int aPlusbOfSuuti = Integer.parseInt(a + b);
		for(int num = 1;num <= 1000;num++){
			if(aPlusbOfSuuti == num*num){
				rezult = "Yes";
				break;
			}
		}
		System.out.println(rezult);
	} 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 String rezult; rezult rezult = "No" rezult "No" int aPlusbOfSuuti = Integer.parseInt(a + b); aPlusbOfSuuti Integer.parseInt(a + b) Integer.parseInt Integer a + b a b for(int num = 1;num <= 1000;num++){
			if(aPlusbOfSuuti == num*num){
				rezult = "Yes";
				break;
			}
		} int num = 1; int num = 1; num 1 num <= 1000 num 1000 num++ num++ num {
			if(aPlusbOfSuuti == num*num){
				rezult = "Yes";
				break;
			}
		} {
			if(aPlusbOfSuuti == num*num){
				rezult = "Yes";
				break;
			}
		} if(aPlusbOfSuuti == num*num){
				rezult = "Yes";
				break;
			} aPlusbOfSuuti == num*num aPlusbOfSuuti num*num num num {
				rezult = "Yes";
				break;
			} rezult = "Yes" rezult "Yes" break; System.out.println(rezult) System.out.println System.out System System.out rezult String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String rezult;
		rezult = "No";
		int aPlusbOfSuuti = Integer.parseInt(a + b);
		for(int num = 1;num <= 1000;num++){
			if(aPlusbOfSuuti == num*num){
				rezult = "Yes";
				break;
			}
		}
		System.out.println(rezult);
	}

} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String rezult;
		rezult = "No";
		int aPlusbOfSuuti = Integer.parseInt(a + b);
		for(int num = 1;num <= 1000;num++){
			if(aPlusbOfSuuti == num*num){
				rezult = "Yes";
				break;
			}
		}
		System.out.println(rezult);
	}

} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String rezult;
		rezult = "No";
		int aPlusbOfSuuti = Integer.parseInt(a + b);
		for(int num = 1;num <= 1000;num++){
			if(aPlusbOfSuuti == num*num){
				rezult = "Yes";
				break;
			}
		}
		System.out.println(rezult);
	}

}
