import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String args[]) throws Exception {
		double d = Math.sqrt(
				Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine().replace(" ", "")));
		System.out.println((int) d == d ? "Yes" : "No");
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String args[]) throws Exception {
		double d = Math.sqrt(
				Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine().replace(" ", "")));
		System.out.println((int) d == d ? "Yes" : "No");
	}
} Main public static void main(String args[]) throws Exception {
		double d = Math.sqrt(
				Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine().replace(" ", "")));
		System.out.println((int) d == d ? "Yes" : "No");
	} main {
		double d = Math.sqrt(
				Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine().replace(" ", "")));
		System.out.println((int) d == d ? "Yes" : "No");
	} double d = Math.sqrt(
				Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine().replace(" ", ""))); d Math.sqrt(
				Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine().replace(" ", ""))) Math.sqrt Math Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine().replace(" ", "")) Integer.parseInt Integer new BufferedReader(new InputStreamReader(System.in)).readLine().replace(" ", "") new BufferedReader(new InputStreamReader(System.in)).readLine().replace new BufferedReader(new InputStreamReader(System.in)).readLine() new BufferedReader(new InputStreamReader(System.in)).readLine new BufferedReader(new InputStreamReader(System.in)) " " "" System.out.println((int) d == d ? "Yes" : "No") System.out.println System.out System System.out (int) d == d ? "Yes" : "No" (int) d == d (int) d d "Yes" "No" String args[] args public class Main {
	public static void main(String args[]) throws Exception {
		double d = Math.sqrt(
				Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine().replace(" ", "")));
		System.out.println((int) d == d ? "Yes" : "No");
	}
} public class Main {
	public static void main(String args[]) throws Exception {
		double d = Math.sqrt(
				Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine().replace(" ", "")));
		System.out.println((int) d == d ? "Yes" : "No");
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String args[]) throws Exception {
		double d = Math.sqrt(
				Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine().replace(" ", "")));
		System.out.println((int) d == d ? "Yes" : "No");
	}
}