import java.util.Scanner;
public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
 
    int all = 0;
    if(b>=100){
    	all = a*1000+b;
    }else if (b>=10) {
		all = a*100+b;
    }else {
		all = a*10+b;
	}
    int cou = 0;
    for(int i=0; i<=all; i++) {
    	if(all == i*i) {
    	    cou++;
}
}
        if(cou>0){
    		System.out.println("Yes");
    	}else{
    		System.out.println("No");
      }
}
} import java.util.Scanner; Scanner 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 all = 0;
    if(b>=100){
    	all = a*1000+b;
    }else if (b>=10) {
		all = a*100+b;
    }else {
		all = a*10+b;
	}
    int cou = 0;
    for(int i=0; i<=all; i++) {
    	if(all == i*i) {
    	    cou++;
}
}
        if(cou>0){
    		System.out.println("Yes");
    	}else{
    		System.out.println("No");
      }
}
} Main public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
 
    int all = 0;
    if(b>=100){
    	all = a*1000+b;
    }else if (b>=10) {
		all = a*100+b;
    }else {
		all = a*10+b;
	}
    int cou = 0;
    for(int i=0; i<=all; i++) {
    	if(all == i*i) {
    	    cou++;
}
}
        if(cou>0){
    		System.out.println("Yes");
    	}else{
    		System.out.println("No");
      }
} main {
    
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
 
    int all = 0;
    if(b>=100){
    	all = a*1000+b;
    }else if (b>=10) {
		all = a*100+b;
    }else {
		all = a*10+b;
	}
    int cou = 0;
    for(int i=0; i<=all; i++) {
    	if(all == i*i) {
    	    cou++;
}
}
        if(cou>0){
    		System.out.println("Yes");
    	}else{
    		System.out.println("No");
      }
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int all = 0; all 0 if(b>=100){
    	all = a*1000+b;
    }else if (b>=10) {
		all = a*100+b;
    }else {
		all = a*10+b;
	} b>=100 b 100 {
    	all = a*1000+b;
    } all = a*1000+b all a*1000+b a*1000 a 1000 b if (b>=10) {
		all = a*100+b;
    }else {
		all = a*10+b;
	} b>=10 b 10 {
		all = a*100+b;
    } all = a*100+b all a*100+b a*100 a 100 b {
		all = a*10+b;
	} all = a*10+b all a*10+b a*10 a 10 b int cou = 0; cou 0 for(int i=0; i<=all; i++) {
    	if(all == i*i) {
    	    cou++;
}
} int i=0; int i=0; i 0 i<=all i all i++ i++ i {
    	if(all == i*i) {
    	    cou++;
}
} {
    	if(all == i*i) {
    	    cou++;
}
} if(all == i*i) {
    	    cou++;
} all == i*i all i*i i i {
    	    cou++;
} cou++ cou if(cou>0){
    		System.out.println("Yes");
    	}else{
    		System.out.println("No");
      } cou>0 cou 0 {
    		System.out.println("Yes");
    	} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
    		System.out.println("No");
      } System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
 
    int all = 0;
    if(b>=100){
    	all = a*1000+b;
    }else if (b>=10) {
		all = a*100+b;
    }else {
		all = a*10+b;
	}
    int cou = 0;
    for(int i=0; i<=all; i++) {
    	if(all == i*i) {
    	    cou++;
}
}
        if(cou>0){
    		System.out.println("Yes");
    	}else{
    		System.out.println("No");
      }
}
} public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
 
    int all = 0;
    if(b>=100){
    	all = a*1000+b;
    }else if (b>=10) {
		all = a*100+b;
    }else {
		all = a*10+b;
	}
    int cou = 0;
    for(int i=0; i<=all; i++) {
    	if(all == i*i) {
    	    cou++;
}
}
        if(cou>0){
    		System.out.println("Yes");
    	}else{
    		System.out.println("No");
      }
}
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
 
    int all = 0;
    if(b>=100){
    	all = a*1000+b;
    }else if (b>=10) {
		all = a*100+b;
    }else {
		all = a*10+b;
	}
    int cou = 0;
    for(int i=0; i<=all; i++) {
    	if(all == i*i) {
    	    cou++;
}
}
        if(cou>0){
    		System.out.println("Yes");
    	}else{
    		System.out.println("No");
      }
}
}
