import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = Integer.parseInt(Integer.toString(a)+Integer.toString(b));
		int d = (int)Math.sqrt(c);
		boolean isSquare = c == d*d;
		System.out.println(isSquare ? "Yes" : "No");
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = Integer.parseInt(Integer.toString(a)+Integer.toString(b));
		int d = (int)Math.sqrt(c);
		boolean isSquare = c == d*d;
		System.out.println(isSquare ? "Yes" : "No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = Integer.parseInt(Integer.toString(a)+Integer.toString(b));
		int d = (int)Math.sqrt(c);
		boolean isSquare = c == d*d;
		System.out.println(isSquare ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = Integer.parseInt(Integer.toString(a)+Integer.toString(b));
		int d = (int)Math.sqrt(c);
		boolean isSquare = c == d*d;
		System.out.println(isSquare ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = Integer.parseInt(Integer.toString(a)+Integer.toString(b)); c Integer.parseInt(Integer.toString(a)+Integer.toString(b)) Integer.parseInt Integer Integer.toString(a)+Integer.toString(b) Integer.toString(a) Integer.toString Integer a Integer.toString(b) Integer.toString Integer b int d = (int)Math.sqrt(c); d (int)Math.sqrt(c) Math.sqrt Math c boolean isSquare = c == d*d; isSquare c == d*d c d*d d d System.out.println(isSquare ? "Yes" : "No") System.out.println System.out System System.out isSquare ? "Yes" : "No" isSquare "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = Integer.parseInt(Integer.toString(a)+Integer.toString(b));
		int d = (int)Math.sqrt(c);
		boolean isSquare = c == d*d;
		System.out.println(isSquare ? "Yes" : "No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = Integer.parseInt(Integer.toString(a)+Integer.toString(b));
		int d = (int)Math.sqrt(c);
		boolean isSquare = c == d*d;
		System.out.println(isSquare ? "Yes" : "No");
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = Integer.parseInt(Integer.toString(a)+Integer.toString(b));
		int d = (int)Math.sqrt(c);
		boolean isSquare = c == d*d;
		System.out.println(isSquare ? "Yes" : "No");
	}
}
