import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        s = s.replace(" ", "");
        int a = Integer.parseInt(s);
        System.out.println(a % (int)Math.sqrt(a) == 0 ? "Yes" : "No");
        scan.close();
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        s = s.replace(" ", "");
        int a = Integer.parseInt(s);
        System.out.println(a % (int)Math.sqrt(a) == 0 ? "Yes" : "No");
        scan.close();
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        s = s.replace(" ", "");
        int a = Integer.parseInt(s);
        System.out.println(a % (int)Math.sqrt(a) == 0 ? "Yes" : "No");
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        s = s.replace(" ", "");
        int a = Integer.parseInt(s);
        System.out.println(a % (int)Math.sqrt(a) == 0 ? "Yes" : "No");
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.nextLine(); s scan.nextLine() scan.nextLine scan s = s.replace(" ", "") s s.replace(" ", "") s.replace s " " "" int a = Integer.parseInt(s); a Integer.parseInt(s) Integer.parseInt Integer s System.out.println(a % (int)Math.sqrt(a) == 0 ? "Yes" : "No") System.out.println System.out System System.out a % (int)Math.sqrt(a) == 0 ? "Yes" : "No" a % (int)Math.sqrt(a) == 0 a % (int)Math.sqrt(a) a (int)Math.sqrt(a) Math.sqrt Math a 0 "Yes" "No" scan.close() scan.close scan String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        s = s.replace(" ", "");
        int a = Integer.parseInt(s);
        System.out.println(a % (int)Math.sqrt(a) == 0 ? "Yes" : "No");
        scan.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        s = s.replace(" ", "");
        int a = Integer.parseInt(s);
        System.out.println(a % (int)Math.sqrt(a) == 0 ? "Yes" : "No");
        scan.close();
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        s = s.replace(" ", "");
        int a = Integer.parseInt(s);
        System.out.println(a % (int)Math.sqrt(a) == 0 ? "Yes" : "No");
        scan.close();
    }
}