import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int ab = Integer.parseInt(s.replaceAll(" ", ""));
		int sqrt = (int)Math.sqrt(ab);
		System.out.println((sqrt * sqrt == ab) ?"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.nextLine();
		int ab = Integer.parseInt(s.replaceAll(" ", ""));
		int sqrt = (int)Math.sqrt(ab);
		System.out.println((sqrt * sqrt == ab) ?"Yes" : "No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int ab = Integer.parseInt(s.replaceAll(" ", ""));
		int sqrt = (int)Math.sqrt(ab);
		System.out.println((sqrt * sqrt == ab) ?"Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int ab = Integer.parseInt(s.replaceAll(" ", ""));
		int sqrt = (int)Math.sqrt(ab);
		System.out.println((sqrt * sqrt == ab) ?"Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc int ab = Integer.parseInt(s.replaceAll(" ", "")); ab Integer.parseInt(s.replaceAll(" ", "")) Integer.parseInt Integer s.replaceAll(" ", "") s.replaceAll s " " "" int sqrt = (int)Math.sqrt(ab); sqrt (int)Math.sqrt(ab) Math.sqrt Math ab System.out.println((sqrt * sqrt == ab) ?"Yes" : "No") System.out.println System.out System System.out (sqrt * sqrt == ab) ?"Yes" : "No" (sqrt * sqrt == ab) sqrt * sqrt sqrt sqrt ab "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int ab = Integer.parseInt(s.replaceAll(" ", ""));
		int sqrt = (int)Math.sqrt(ab);
		System.out.println((sqrt * sqrt == ab) ?"Yes" : "No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int ab = Integer.parseInt(s.replaceAll(" ", ""));
		int sqrt = (int)Math.sqrt(ab);
		System.out.println((sqrt * sqrt == ab) ?"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.nextLine();
		int ab = Integer.parseInt(s.replaceAll(" ", ""));
		int sqrt = (int)Math.sqrt(ab);
		System.out.println((sqrt * sqrt == ab) ?"Yes" : "No");
	}
}
