import java.util.Scanner;

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

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		int i = Integer.parseInt(a + b);
		int root = (int)Math.sqrt(i);
		System.out.println(root * root == i ? "Yes" : "No");
	}
}
