import java.util.*;
 
public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);		
		String N = in.next();
        String M = in.next();
      
      	int nam = Integer.parseInt(N+M);
        double nam2 = Math.sqrt((double)nam);
      
        if(nam2%1==0){System.out.print("Yes");}
        else{System.out.print("No");}
      
      }
	} import java.util.*; util.* java public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);		
		String N = in.next();
        String M = in.next();
      
      	int nam = Integer.parseInt(N+M);
        double nam2 = Math.sqrt((double)nam);
      
        if(nam2%1==0){System.out.print("Yes");}
        else{System.out.print("No");}
      
      }
	} Main public static void main (String[] args) {
		Scanner in = new Scanner(System.in);		
		String N = in.next();
        String M = in.next();
      
      	int nam = Integer.parseInt(N+M);
        double nam2 = Math.sqrt((double)nam);
      
        if(nam2%1==0){System.out.print("Yes");}
        else{System.out.print("No");}
      
      } main {
		Scanner in = new Scanner(System.in);		
		String N = in.next();
        String M = in.next();
      
      	int nam = Integer.parseInt(N+M);
        double nam2 = Math.sqrt((double)nam);
      
        if(nam2%1==0){System.out.print("Yes");}
        else{System.out.print("No");}
      
      } Scanner in = new Scanner(System.in); in new Scanner(System.in) String N = in.next(); N in.next() in.next in String M = in.next(); M in.next() in.next in int nam = Integer.parseInt(N+M); nam Integer.parseInt(N+M) Integer.parseInt Integer N+M N M double nam2 = Math.sqrt((double)nam); nam2 Math.sqrt((double)nam) Math.sqrt Math (double)nam if(nam2%1==0){System.out.print("Yes");}
        else{System.out.print("No");} nam2%1==0 nam2%1 nam2 1 0 {System.out.print("Yes");} System.out.print("Yes") System.out.print System.out System System.out "Yes" {System.out.print("No");} System.out.print("No") System.out.print System.out System System.out "No" String[] args args public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);		
		String N = in.next();
        String M = in.next();
      
      	int nam = Integer.parseInt(N+M);
        double nam2 = Math.sqrt((double)nam);
      
        if(nam2%1==0){System.out.print("Yes");}
        else{System.out.print("No");}
      
      }
	} public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);		
		String N = in.next();
        String M = in.next();
      
      	int nam = Integer.parseInt(N+M);
        double nam2 = Math.sqrt((double)nam);
      
        if(nam2%1==0){System.out.print("Yes");}
        else{System.out.print("No");}
      
      }
	} Main
import java.util.*;
 
public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);		
		String N = in.next();
        String M = in.next();
      
      	int nam = Integer.parseInt(N+M);
        double nam2 = Math.sqrt((double)nam);
      
        if(nam2%1==0){System.out.print("Yes");}
        else{System.out.print("No");}
      
      }
	}