import java.util.*;
import static java.lang.Integer.*;
//import static java.lang.Long.*;
//import static java.lang.Math.*;
import static java.lang.System.*;
import static java.lang.Math.*;

public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		int ab = parseInt(a+b);
		int ab2 = (int)sqrt((double)ab);
		out.println(ab==ab2*ab2?"Yes":"No");
	}
} import java.util.*; util.* java import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		int ab = parseInt(a+b);
		int ab2 = (int)sqrt((double)ab);
		out.println(ab==ab2*ab2?"Yes":"No");
	}
} Main public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		int ab = parseInt(a+b);
		int ab2 = (int)sqrt((double)ab);
		out.println(ab==ab2*ab2?"Yes":"No");
	} main {
		int i,j;
		Scanner sc = new Scanner(in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		int ab = parseInt(a+b);
		int ab2 = (int)sqrt((double)ab);
		out.println(ab==ab2*ab2?"Yes":"No");
	} int i i j; j Scanner sc = new Scanner(in); sc new Scanner(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 ab = parseInt(a+b); ab parseInt(a+b) parseInt a+b a b int ab2 = (int)sqrt((double)ab); ab2 (int)sqrt((double)ab) sqrt (double)ab out.println(ab==ab2*ab2?"Yes":"No") out.println out ab==ab2*ab2?"Yes":"No" ab==ab2*ab2 ab ab2*ab2 ab2 ab2 "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		int ab = parseInt(a+b);
		int ab2 = (int)sqrt((double)ab);
		out.println(ab==ab2*ab2?"Yes":"No");
	}
} public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		int ab = parseInt(a+b);
		int ab2 = (int)sqrt((double)ab);
		out.println(ab==ab2*ab2?"Yes":"No");
	}
} Main
import java.util.*;
import static java.lang.Integer.*;
//import static java.lang.Long.*;
//import static java.lang.Math.*;
import static java.lang.System.*;
import static java.lang.Math.*;

public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		int ab = parseInt(a+b);
		int ab2 = (int)sqrt((double)ab);
		out.println(ab==ab2*ab2?"Yes":"No");
	}
}
