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();
		sc.close();
		String s = a+b;
		int n = Integer.valueOf(s);
		String ans = "No";
		for(int i = 0; i < 320;i++) {
			if(i*i==n) {
				ans="Yes";
			}
		}
		System.out.println(ans);
	}

} 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();
		sc.close();
		String s = a+b;
		int n = Integer.valueOf(s);
		String ans = "No";
		for(int i = 0; i < 320;i++) {
			if(i*i==n) {
				ans="Yes";
			}
		}
		System.out.println(ans);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		String s = a+b;
		int n = Integer.valueOf(s);
		String ans = "No";
		for(int i = 0; i < 320;i++) {
			if(i*i==n) {
				ans="Yes";
			}
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		String s = a+b;
		int n = Integer.valueOf(s);
		String ans = "No";
		for(int i = 0; i < 320;i++) {
			if(i*i==n) {
				ans="Yes";
			}
		}
		System.out.println(ans);
	} 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 sc.close() sc.close sc String s = a+b; s a+b a b int n = Integer.valueOf(s); n Integer.valueOf(s) Integer.valueOf Integer s String ans = "No"; ans "No" for(int i = 0; i < 320;i++) {
			if(i*i==n) {
				ans="Yes";
			}
		} int i = 0; int i = 0; i 0 i < 320 i 320 i++ i++ i {
			if(i*i==n) {
				ans="Yes";
			}
		} {
			if(i*i==n) {
				ans="Yes";
			}
		} if(i*i==n) {
				ans="Yes";
			} i*i==n i*i i i n {
				ans="Yes";
			} ans="Yes" ans "Yes" System.out.println(ans) System.out.println System.out System System.out ans 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();
		sc.close();
		String s = a+b;
		int n = Integer.valueOf(s);
		String ans = "No";
		for(int i = 0; i < 320;i++) {
			if(i*i==n) {
				ans="Yes";
			}
		}
		System.out.println(ans);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		String s = a+b;
		int n = Integer.valueOf(s);
		String ans = "No";
		for(int i = 0; i < 320;i++) {
			if(i*i==n) {
				ans="Yes";
			}
		}
		System.out.println(ans);
	}

} 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();
		sc.close();
		String s = a+b;
		int n = Integer.valueOf(s);
		String ans = "No";
		for(int i = 0; i < 320;i++) {
			if(i*i==n) {
				ans="Yes";
			}
		}
		System.out.println(ans);
	}

}
