import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		String a = stdIn.next();
		String b = stdIn.next();
		String c = new String(a+b);
		int ab = Integer.parseInt(c);
		
		if(Math.sqrt(ab) == (int)Math.sqrt(ab)) {
			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 stdIn = new Scanner(System.in);
		
		String a = stdIn.next();
		String b = stdIn.next();
		String c = new String(a+b);
		int ab = Integer.parseInt(c);
		
		if(Math.sqrt(ab) == (int)Math.sqrt(ab)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
	}

} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		String a = stdIn.next();
		String b = stdIn.next();
		String c = new String(a+b);
		int ab = Integer.parseInt(c);
		
		if(Math.sqrt(ab) == (int)Math.sqrt(ab)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
	} main {
		Scanner stdIn = new Scanner(System.in);
		
		String a = stdIn.next();
		String b = stdIn.next();
		String c = new String(a+b);
		int ab = Integer.parseInt(c);
		
		if(Math.sqrt(ab) == (int)Math.sqrt(ab)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) String a = stdIn.next(); a stdIn.next() stdIn.next stdIn String b = stdIn.next(); b stdIn.next() stdIn.next stdIn String c = new String(a+b); c new String(a+b) int ab = Integer.parseInt(c); ab Integer.parseInt(c) Integer.parseInt Integer c if(Math.sqrt(ab) == (int)Math.sqrt(ab)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} Math.sqrt(ab) == (int)Math.sqrt(ab) Math.sqrt(ab) Math.sqrt Math ab (int)Math.sqrt(ab) Math.sqrt Math ab {
			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 stdIn = new Scanner(System.in);
		
		String a = stdIn.next();
		String b = stdIn.next();
		String c = new String(a+b);
		int ab = Integer.parseInt(c);
		
		if(Math.sqrt(ab) == (int)Math.sqrt(ab)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
	}

} public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		String a = stdIn.next();
		String b = stdIn.next();
		String c = new String(a+b);
		int ab = Integer.parseInt(c);
		
		if(Math.sqrt(ab) == (int)Math.sqrt(ab)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
	}

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		String a = stdIn.next();
		String b = stdIn.next();
		String c = new String(a+b);
		int ab = Integer.parseInt(c);
		
		if(Math.sqrt(ab) == (int)Math.sqrt(ab)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
	}

}
