import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		S += sc.next();
		sc.close();
		double num =  Math.sqrt((double)Integer.parseInt(S));

		System.out.println(num-(int)num==0?"Yes":"No");
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		S += sc.next();
		sc.close();
		double num =  Math.sqrt((double)Integer.parseInt(S));

		System.out.println(num-(int)num==0?"Yes":"No");
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		S += sc.next();
		sc.close();
		double num =  Math.sqrt((double)Integer.parseInt(S));

		System.out.println(num-(int)num==0?"Yes":"No");
	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		S += sc.next();
		sc.close();
		double num =  Math.sqrt((double)Integer.parseInt(S));

		System.out.println(num-(int)num==0?"Yes":"No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc S += sc.next() S sc.next() sc.next sc sc.close() sc.close sc double num =  Math.sqrt((double)Integer.parseInt(S)); num Math.sqrt((double)Integer.parseInt(S)) Math.sqrt Math (double)Integer.parseInt(S) Integer.parseInt Integer S System.out.println(num-(int)num==0?"Yes":"No") System.out.println System.out System System.out num-(int)num==0?"Yes":"No" num-(int)num==0 num-(int)num num (int)num 0 "Yes" "No" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		S += sc.next();
		sc.close();
		double num =  Math.sqrt((double)Integer.parseInt(S));

		System.out.println(num-(int)num==0?"Yes":"No");
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		S += sc.next();
		sc.close();
		double num =  Math.sqrt((double)Integer.parseInt(S));

		System.out.println(num-(int)num==0?"Yes":"No");
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		S += sc.next();
		sc.close();
		double num =  Math.sqrt((double)Integer.parseInt(S));

		System.out.println(num-(int)num==0?"Yes":"No");
	}

}
