import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        String bStr = scan.next();
        int b = Integer.parseInt(bStr);
        int digits = bStr.length();
        a *= Math.pow(10, digits);
        a += b;
        for (int i = 0; i <= Math.sqrt(a); i++) {
            if (i * i == a ) {
                System.out.println("Yes"); return;
            }
        }
        System.out.println("No");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        String bStr = scan.next();
        int b = Integer.parseInt(bStr);
        int digits = bStr.length();
        a *= Math.pow(10, digits);
        a += b;
        for (int i = 0; i <= Math.sqrt(a); i++) {
            if (i * i == a ) {
                System.out.println("Yes"); return;
            }
        }
        System.out.println("No");
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        String bStr = scan.next();
        int b = Integer.parseInt(bStr);
        int digits = bStr.length();
        a *= Math.pow(10, digits);
        a += b;
        for (int i = 0; i <= Math.sqrt(a); i++) {
            if (i * i == a ) {
                System.out.println("Yes"); return;
            }
        }
        System.out.println("No");
    } main {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        String bStr = scan.next();
        int b = Integer.parseInt(bStr);
        int digits = bStr.length();
        a *= Math.pow(10, digits);
        a += b;
        for (int i = 0; i <= Math.sqrt(a); i++) {
            if (i * i == a ) {
                System.out.println("Yes"); return;
            }
        }
        System.out.println("No");
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan String bStr = scan.next(); bStr scan.next() scan.next scan int b = Integer.parseInt(bStr); b Integer.parseInt(bStr) Integer.parseInt Integer bStr int digits = bStr.length(); digits bStr.length() bStr.length bStr a *= Math.pow(10, digits) a Math.pow(10, digits) Math.pow Math 10 digits a += b a b for (int i = 0; i <= Math.sqrt(a); i++) {
            if (i * i == a ) {
                System.out.println("Yes"); return;
            }
        } int i = 0; int i = 0; i 0 i <= Math.sqrt(a) i Math.sqrt(a) Math.sqrt Math a i++ i++ i {
            if (i * i == a ) {
                System.out.println("Yes"); return;
            }
        } {
            if (i * i == a ) {
                System.out.println("Yes"); return;
            }
        } if (i * i == a ) {
                System.out.println("Yes"); return;
            } i * i == a i * i i i a {
                System.out.println("Yes"); return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; 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 scan = new Scanner(System.in);
        int a = scan.nextInt();
        String bStr = scan.next();
        int b = Integer.parseInt(bStr);
        int digits = bStr.length();
        a *= Math.pow(10, digits);
        a += b;
        for (int i = 0; i <= Math.sqrt(a); i++) {
            if (i * i == a ) {
                System.out.println("Yes"); return;
            }
        }
        System.out.println("No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        String bStr = scan.next();
        int b = Integer.parseInt(bStr);
        int digits = bStr.length();
        a *= Math.pow(10, digits);
        a += b;
        for (int i = 0; i <= Math.sqrt(a); i++) {
            if (i * i == a ) {
                System.out.println("Yes"); return;
            }
        }
        System.out.println("No");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        String bStr = scan.next();
        int b = Integer.parseInt(bStr);
        int digits = bStr.length();
        a *= Math.pow(10, digits);
        a += b;
        for (int i = 0; i <= Math.sqrt(a); i++) {
            if (i * i == a ) {
                System.out.println("Yes"); return;
            }
        }
        System.out.println("No");
    }
}