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