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();
		String x = a + b;
		int y = Integer.parseInt(x);
		String ans = "No";
		for(int i = 0;i < 1000;i++) {
			if(i * i == y) {
				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();
		String x = a + b;
		int y = Integer.parseInt(x);
		String ans = "No";
		for(int i = 0;i < 1000;i++) {
			if(i * i == y) {
				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();
		String x = a + b;
		int y = Integer.parseInt(x);
		String ans = "No";
		for(int i = 0;i < 1000;i++) {
			if(i * i == y) {
				ans = "Yes";
			}
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String x = a + b;
		int y = Integer.parseInt(x);
		String ans = "No";
		for(int i = 0;i < 1000;i++) {
			if(i * i == y) {
				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 String x = a + b; x a + b a b int y = Integer.parseInt(x); y Integer.parseInt(x) Integer.parseInt Integer x String ans = "No"; ans "No" for(int i = 0;i < 1000;i++) {
			if(i * i == y) {
				ans = "Yes";
			}
		} int i = 0; int i = 0; i 0 i < 1000 i 1000 i++ i++ i {
			if(i * i == y) {
				ans = "Yes";
			}
		} {
			if(i * i == y) {
				ans = "Yes";
			}
		} if(i * i == y) {
				ans = "Yes";
			} i * i == y i * i i i y {
				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();
		String x = a + b;
		int y = Integer.parseInt(x);
		String ans = "No";
		for(int i = 0;i < 1000;i++) {
			if(i * i == y) {
				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();
		String x = a + b;
		int y = Integer.parseInt(x);
		String ans = "No";
		for(int i = 0;i < 1000;i++) {
			if(i * i == y) {
				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();
		String x = a + b;
		int y = Integer.parseInt(x);
		String ans = "No";
		for(int i = 0;i < 1000;i++) {
			if(i * i == y) {
				ans = "Yes";
			}
		}
		System.out.println(ans);
	}
}