import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next(),b= sc.next();
        int c = Integer.parseInt(a+b);
        String ans = "No";
        for(int i = 1;i*i<=c;i++){
            if(i*i==c){
                ans = "Yes";
            } else {
                ans = "No";
            }
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next(),b= sc.next();
        int c = Integer.parseInt(a+b);
        String ans = "No";
        for(int i = 1;i*i<=c;i++){
            if(i*i==c){
                ans = "Yes";
            } else {
                ans = "No";
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next(),b= sc.next();
        int c = Integer.parseInt(a+b);
        String ans = "No";
        for(int i = 1;i*i<=c;i++){
            if(i*i==c){
                ans = "Yes";
            } else {
                ans = "No";
            }
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        String a = sc.next(),b= sc.next();
        int c = Integer.parseInt(a+b);
        String ans = "No";
        for(int i = 1;i*i<=c;i++){
            if(i*i==c){
                ans = "Yes";
            } else {
                ans = "No";
            }
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next() a sc.next() sc.next sc b= sc.next(); b sc.next() sc.next sc int c = Integer.parseInt(a+b); c Integer.parseInt(a+b) Integer.parseInt Integer a+b a b String ans = "No"; ans "No" for(int i = 1;i*i<=c;i++){
            if(i*i==c){
                ans = "Yes";
            } else {
                ans = "No";
            }
        } int i = 1; int i = 1; i 1 i*i<=c i*i i i c i++ i++ i {
            if(i*i==c){
                ans = "Yes";
            } else {
                ans = "No";
            }
        } {
            if(i*i==c){
                ans = "Yes";
            } else {
                ans = "No";
            }
        } if(i*i==c){
                ans = "Yes";
            } else {
                ans = "No";
            } i*i==c i*i i i c {
                ans = "Yes";
            } ans = "Yes" ans "Yes" {
                ans = "No";
            } ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next(),b= sc.next();
        int c = Integer.parseInt(a+b);
        String ans = "No";
        for(int i = 1;i*i<=c;i++){
            if(i*i==c){
                ans = "Yes";
            } else {
                ans = "No";
            }
        }
        System.out.println(ans);
    }
}