import java.util.Scanner;

class Main{
	
	
	public static void main(String[] args) {
		new Main().Kei();
	}
	
	void Kei() {
		Scanner sc=new Scanner(System.in);
		int a=Integer.parseInt(sc.next());
		int b=Integer.parseInt(sc.next());
		StringBuilder sb=new StringBuilder();
		sb.append(a);
		sb.append(b);
		double g=Math.sqrt(Integer.parseInt(sb.toString()));
		if(g==(int)g)
			System.out.println("Yes");
		else
			System.out.println("No");
	}
	
}

 import java.util.Scanner; Scanner java.util class Main{
	
	
	public static void main(String[] args) {
		new Main().Kei();
	}
	
	void Kei() {
		Scanner sc=new Scanner(System.in);
		int a=Integer.parseInt(sc.next());
		int b=Integer.parseInt(sc.next());
		StringBuilder sb=new StringBuilder();
		sb.append(a);
		sb.append(b);
		double g=Math.sqrt(Integer.parseInt(sb.toString()));
		if(g==(int)g)
			System.out.println("Yes");
		else
			System.out.println("No");
	}
	
} Main public static void main(String[] args) {
		new Main().Kei();
	} main {
		new Main().Kei();
	} new Main().Kei() new Main().Kei new Main() String[] args args void Kei() {
		Scanner sc=new Scanner(System.in);
		int a=Integer.parseInt(sc.next());
		int b=Integer.parseInt(sc.next());
		StringBuilder sb=new StringBuilder();
		sb.append(a);
		sb.append(b);
		double g=Math.sqrt(Integer.parseInt(sb.toString()));
		if(g==(int)g)
			System.out.println("Yes");
		else
			System.out.println("No");
	} Kei {
		Scanner sc=new Scanner(System.in);
		int a=Integer.parseInt(sc.next());
		int b=Integer.parseInt(sc.next());
		StringBuilder sb=new StringBuilder();
		sb.append(a);
		sb.append(b);
		double g=Math.sqrt(Integer.parseInt(sb.toString()));
		if(g==(int)g)
			System.out.println("Yes");
		else
			System.out.println("No");
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int a=Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b=Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc StringBuilder sb=new StringBuilder(); sb new StringBuilder() sb.append(a) sb.append sb a sb.append(b) sb.append sb b double g=Math.sqrt(Integer.parseInt(sb.toString())); g Math.sqrt(Integer.parseInt(sb.toString())) Math.sqrt Math Integer.parseInt(sb.toString()) Integer.parseInt Integer sb.toString() sb.toString sb if(g==(int)g)
			System.out.println("Yes");
		else
			System.out.println("No"); g==(int)g g (int)g System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No"
import java.util.Scanner;

class Main{
	
	
	public static void main(String[] args) {
		new Main().Kei();
	}
	
	void Kei() {
		Scanner sc=new Scanner(System.in);
		int a=Integer.parseInt(sc.next());
		int b=Integer.parseInt(sc.next());
		StringBuilder sb=new StringBuilder();
		sb.append(a);
		sb.append(b);
		double g=Math.sqrt(Integer.parseInt(sb.toString()));
		if(g==(int)g)
			System.out.println("Yes");
		else
			System.out.println("No");
	}
	
}


