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();
		
		sc.close();

		int multiply = Integer.parseInt(a + b);
		boolean isSquared = false;

		for (int i = 0; i * i <= multiply; i++){
			if (i * i == multiply){
				System.out.println("Yes");
				isSquared = true;
				break;
			}
		}

		if ( ! isSquared){
			System.out.println("No");
		}
	}
} 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();
		
		sc.close();

		int multiply = Integer.parseInt(a + b);
		boolean isSquared = false;

		for (int i = 0; i * i <= multiply; i++){
			if (i * i == multiply){
				System.out.println("Yes");
				isSquared = true;
				break;
			}
		}

		if ( ! isSquared){
			System.out.println("No");
		}
	}
} Main public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		String a = sc.next();
      	String b = sc.next();
		
		sc.close();

		int multiply = Integer.parseInt(a + b);
		boolean isSquared = false;

		for (int i = 0; i * i <= multiply; i++){
			if (i * i == multiply){
				System.out.println("Yes");
				isSquared = true;
				break;
			}
		}

		if ( ! isSquared){
			System.out.println("No");
		}
	} main {

		Scanner sc = new Scanner(System.in);

		String a = sc.next();
      	String b = sc.next();
		
		sc.close();

		int multiply = Integer.parseInt(a + b);
		boolean isSquared = false;

		for (int i = 0; i * i <= multiply; i++){
			if (i * i == multiply){
				System.out.println("Yes");
				isSquared = true;
				break;
			}
		}

		if ( ! isSquared){
			System.out.println("No");
		}
	} 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 sc.close() sc.close sc int multiply = Integer.parseInt(a + b); multiply Integer.parseInt(a + b) Integer.parseInt Integer a + b a b boolean isSquared = false; isSquared false for (int i = 0; i * i <= multiply; i++){
			if (i * i == multiply){
				System.out.println("Yes");
				isSquared = true;
				break;
			}
		} int i = 0; int i = 0; i 0 i * i <= multiply i * i i i multiply i++ i++ i {
			if (i * i == multiply){
				System.out.println("Yes");
				isSquared = true;
				break;
			}
		} {
			if (i * i == multiply){
				System.out.println("Yes");
				isSquared = true;
				break;
			}
		} if (i * i == multiply){
				System.out.println("Yes");
				isSquared = true;
				break;
			} i * i == multiply i * i i i multiply {
				System.out.println("Yes");
				isSquared = true;
				break;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" isSquared = true isSquared true break; if ( ! isSquared){
			System.out.println("No");
		} ! isSquared isSquared {
			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);

		String a = sc.next();
      	String b = sc.next();
		
		sc.close();

		int multiply = Integer.parseInt(a + b);
		boolean isSquared = false;

		for (int i = 0; i * i <= multiply; i++){
			if (i * i == multiply){
				System.out.println("Yes");
				isSquared = true;
				break;
			}
		}

		if ( ! isSquared){
			System.out.println("No");
		}
	}
} public class Main{
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		String a = sc.next();
      	String b = sc.next();
		
		sc.close();

		int multiply = Integer.parseInt(a + b);
		boolean isSquared = false;

		for (int i = 0; i * i <= multiply; i++){
			if (i * i == multiply){
				System.out.println("Yes");
				isSquared = true;
				break;
			}
		}

		if ( ! isSquared){
			System.out.println("No");
		}
	}
} 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();
		
		sc.close();

		int multiply = Integer.parseInt(a + b);
		boolean isSquared = false;

		for (int i = 0; i * i <= multiply; i++){
			if (i * i == multiply){
				System.out.println("Yes");
				isSquared = true;
				break;
			}
		}

		if ( ! isSquared){
			System.out.println("No");
		}
	}
}
