import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		boolean ans = false;
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s1 = String.valueOf(a);
		String s2 = String.valueOf(b);
		double n = Integer.parseInt(s1 + s2);
		int h = (int)Math.sqrt(n);
		if(Math.sqrt(n) == h) {
			System.out.println("Yes");
		}
		else System.out.println("No");
		sc.close();
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		boolean ans = false;
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s1 = String.valueOf(a);
		String s2 = String.valueOf(b);
		double n = Integer.parseInt(s1 + s2);
		int h = (int)Math.sqrt(n);
		if(Math.sqrt(n) == h) {
			System.out.println("Yes");
		}
		else System.out.println("No");
		sc.close();
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		boolean ans = false;
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s1 = String.valueOf(a);
		String s2 = String.valueOf(b);
		double n = Integer.parseInt(s1 + s2);
		int h = (int)Math.sqrt(n);
		if(Math.sqrt(n) == h) {
			System.out.println("Yes");
		}
		else System.out.println("No");
		sc.close();
	} main {
		// TODO Auto-generated method stub
		boolean ans = false;
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s1 = String.valueOf(a);
		String s2 = String.valueOf(b);
		double n = Integer.parseInt(s1 + s2);
		int h = (int)Math.sqrt(n);
		if(Math.sqrt(n) == h) {
			System.out.println("Yes");
		}
		else System.out.println("No");
		sc.close();
	} boolean ans = false; ans false 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 s1 = String.valueOf(a); s1 String.valueOf(a) String.valueOf String a String s2 = String.valueOf(b); s2 String.valueOf(b) String.valueOf String b double n = Integer.parseInt(s1 + s2); n Integer.parseInt(s1 + s2) Integer.parseInt Integer s1 + s2 s1 s2 int h = (int)Math.sqrt(n); h (int)Math.sqrt(n) Math.sqrt Math n if(Math.sqrt(n) == h) {
			System.out.println("Yes");
		}
		else System.out.println("No"); Math.sqrt(n) == h Math.sqrt(n) Math.sqrt Math n h {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		boolean ans = false;
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s1 = String.valueOf(a);
		String s2 = String.valueOf(b);
		double n = Integer.parseInt(s1 + s2);
		int h = (int)Math.sqrt(n);
		if(Math.sqrt(n) == h) {
			System.out.println("Yes");
		}
		else System.out.println("No");
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		boolean ans = false;
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s1 = String.valueOf(a);
		String s2 = String.valueOf(b);
		double n = Integer.parseInt(s1 + s2);
		int h = (int)Math.sqrt(n);
		if(Math.sqrt(n) == h) {
			System.out.println("Yes");
		}
		else System.out.println("No");
		sc.close();
	}

} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		boolean ans = false;
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s1 = String.valueOf(a);
		String s2 = String.valueOf(b);
		double n = Integer.parseInt(s1 + s2);
		int h = (int)Math.sqrt(n);
		if(Math.sqrt(n) == h) {
			System.out.println("Yes");
		}
		else System.out.println("No");
		sc.close();
	}

}
