import java.util.Scanner;

class Main{
	static boolean isSQ(int s) {
		int tmp = (int)Math.sqrt(s);
		return tmp * tmp == s;
	}
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next(), b = sc.next();
		System.out.println(isSQ(Integer.valueOf(a.concat(b))) ? "Yes" : "No");
	}
} import java.util.Scanner; Scanner java.util class Main{
	static boolean isSQ(int s) {
		int tmp = (int)Math.sqrt(s);
		return tmp * tmp == s;
	}
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next(), b = sc.next();
		System.out.println(isSQ(Integer.valueOf(a.concat(b))) ? "Yes" : "No");
	}
} Main static boolean isSQ(int s) {
		int tmp = (int)Math.sqrt(s);
		return tmp * tmp == s;
	} isSQ {
		int tmp = (int)Math.sqrt(s);
		return tmp * tmp == s;
	} int tmp = (int)Math.sqrt(s); tmp (int)Math.sqrt(s) Math.sqrt Math s return tmp * tmp == s; tmp * tmp == s tmp * tmp tmp tmp s int s s public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next(), b = sc.next();
		System.out.println(isSQ(Integer.valueOf(a.concat(b))) ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		String a = sc.next(), b = sc.next();
		System.out.println(isSQ(Integer.valueOf(a.concat(b))) ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next() a sc.next() sc.next sc b = sc.next(); b sc.next() sc.next sc System.out.println(isSQ(Integer.valueOf(a.concat(b))) ? "Yes" : "No") System.out.println System.out System System.out isSQ(Integer.valueOf(a.concat(b))) ? "Yes" : "No" isSQ(Integer.valueOf(a.concat(b))) isSQ Integer.valueOf(a.concat(b)) Integer.valueOf Integer a.concat(b) a.concat a b "Yes" "No" String[] args args
import java.util.Scanner;

class Main{
	static boolean isSQ(int s) {
		int tmp = (int)Math.sqrt(s);
		return tmp * tmp == s;
	}
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next(), b = sc.next();
		System.out.println(isSQ(Integer.valueOf(a.concat(b))) ? "Yes" : "No");
	}
}