import java.util.*;
// warm-up
public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		double k = Double.parseDouble(sc.next()+sc.next());
		int t = (int)Math.sqrt(k);
		System.out.println(t*t==k ? "Yes" : "No");
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} import java.util.*; util.* java public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		double k = Double.parseDouble(sc.next()+sc.next());
		int t = (int)Math.sqrt(k);
		System.out.println(t*t==k ? "Yes" : "No");
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} Main static void solve() {
		Scanner sc = new Scanner(System.in);
		double k = Double.parseDouble(sc.next()+sc.next());
		int t = (int)Math.sqrt(k);
		System.out.println(t*t==k ? "Yes" : "No");
		sc.close();		
	} solve {
		Scanner sc = new Scanner(System.in);
		double k = Double.parseDouble(sc.next()+sc.next());
		int t = (int)Math.sqrt(k);
		System.out.println(t*t==k ? "Yes" : "No");
		sc.close();		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) double k = Double.parseDouble(sc.next()+sc.next()); k Double.parseDouble(sc.next()+sc.next()) Double.parseDouble Double sc.next()+sc.next() sc.next() sc.next sc sc.next() sc.next sc int t = (int)Math.sqrt(k); t (int)Math.sqrt(k) Math.sqrt Math k System.out.println(t*t==k ? "Yes" : "No") System.out.println System.out System System.out t*t==k ? "Yes" : "No" t*t==k t*t t t k "Yes" "No" sc.close() sc.close sc public static void main(String args[]) {
		solve();
	} main {
		solve();
	} solve() solve String args[] args public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		double k = Double.parseDouble(sc.next()+sc.next());
		int t = (int)Math.sqrt(k);
		System.out.println(t*t==k ? "Yes" : "No");
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		double k = Double.parseDouble(sc.next()+sc.next());
		int t = (int)Math.sqrt(k);
		System.out.println(t*t==k ? "Yes" : "No");
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} Main
import java.util.*;
// warm-up
public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		double k = Double.parseDouble(sc.next()+sc.next());
		int t = (int)Math.sqrt(k);
		System.out.println(t*t==k ? "Yes" : "No");
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

}