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 multiply = a * b;
      	boolean isSquared = false;
      
      	for (int i = 1; i * i <= multiply; i++){
        	if (i * i == multiply){
            	System.out.println("Yes");
              	isSquared = true;
              	break;
            }
        }
      
      if ( ! isSquared){
      		System.out.println("No");
      }
    }
}
