import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        String A =scanner.next();
        String B =scanner.next();

        Long t = Long.parseLong(A+B);


        HashSet<Long> hashSet = new HashSet<>();
        for(int i=1; i<1000; i++){
            hashSet.add((long)i * (long)i);
        }

        if(hashSet.contains(t)){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }


    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        String A =scanner.next();
        String B =scanner.next();

        Long t = Long.parseLong(A+B);


        HashSet<Long> hashSet = new HashSet<>();
        for(int i=1; i<1000; i++){
            hashSet.add((long)i * (long)i);
        }

        if(hashSet.contains(t)){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }


    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        String A =scanner.next();
        String B =scanner.next();

        Long t = Long.parseLong(A+B);


        HashSet<Long> hashSet = new HashSet<>();
        for(int i=1; i<1000; i++){
            hashSet.add((long)i * (long)i);
        }

        if(hashSet.contains(t)){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }


    } main {
        Scanner scanner = new Scanner(System.in);

        String A =scanner.next();
        String B =scanner.next();

        Long t = Long.parseLong(A+B);


        HashSet<Long> hashSet = new HashSet<>();
        for(int i=1; i<1000; i++){
            hashSet.add((long)i * (long)i);
        }

        if(hashSet.contains(t)){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }


    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String A =scanner.next(); A scanner.next() scanner.next scanner String B =scanner.next(); B scanner.next() scanner.next scanner Long t = Long.parseLong(A+B); t Long.parseLong(A+B) Long.parseLong Long A+B A B HashSet<Long> hashSet = new HashSet<>(); hashSet new HashSet<>() for(int i=1; i<1000; i++){
            hashSet.add((long)i * (long)i);
        } int i=1; int i=1; i 1 i<1000 i 1000 i++ i++ i {
            hashSet.add((long)i * (long)i);
        } {
            hashSet.add((long)i * (long)i);
        } hashSet.add((long)i * (long)i) hashSet.add hashSet (long)i * (long)i (long)i (long)i if(hashSet.contains(t)){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } hashSet.contains(t) hashSet.contains hashSet t {
            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 scanner = new Scanner(System.in);

        String A =scanner.next();
        String B =scanner.next();

        Long t = Long.parseLong(A+B);


        HashSet<Long> hashSet = new HashSet<>();
        for(int i=1; i<1000; i++){
            hashSet.add((long)i * (long)i);
        }

        if(hashSet.contains(t)){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }


    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        String A =scanner.next();
        String B =scanner.next();

        Long t = Long.parseLong(A+B);


        HashSet<Long> hashSet = new HashSet<>();
        for(int i=1; i<1000; i++){
            hashSet.add((long)i * (long)i);
        }

        if(hashSet.contains(t)){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }


    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        String A =scanner.next();
        String B =scanner.next();

        Long t = Long.parseLong(A+B);


        HashSet<Long> hashSet = new HashSet<>();
        for(int i=1; i<1000; i++){
            hashSet.add((long)i * (long)i);
        }

        if(hashSet.contains(t)){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }


    }
}
