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 x = b;
        if (b >= 100)
            x += a * 1000;
        else if (b >= 10)
            x += a * 100;
        else
            x += a * 10;

        boolean isRe = false;
        int cnt = 1;
        int total = cnt * cnt;
        while (total <= x) {
            if (x == total) {
                isRe = true;
                break;
            }
            cnt++;
            total = cnt * cnt;
        }
      	
        System.out.println(isRe ? "Yes" : "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 x = b;
        if (b >= 100)
            x += a * 1000;
        else if (b >= 10)
            x += a * 100;
        else
            x += a * 10;

        boolean isRe = false;
        int cnt = 1;
        int total = cnt * cnt;
        while (total <= x) {
            if (x == total) {
                isRe = true;
                break;
            }
            cnt++;
            total = cnt * cnt;
        }
      	
        System.out.println(isRe ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int x = b;
        if (b >= 100)
            x += a * 1000;
        else if (b >= 10)
            x += a * 100;
        else
            x += a * 10;

        boolean isRe = false;
        int cnt = 1;
        int total = cnt * cnt;
        while (total <= x) {
            if (x == total) {
                isRe = true;
                break;
            }
            cnt++;
            total = cnt * cnt;
        }
      	
        System.out.println(isRe ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int x = b;
        if (b >= 100)
            x += a * 1000;
        else if (b >= 10)
            x += a * 100;
        else
            x += a * 10;

        boolean isRe = false;
        int cnt = 1;
        int total = cnt * cnt;
        while (total <= x) {
            if (x == total) {
                isRe = true;
                break;
            }
            cnt++;
            total = cnt * cnt;
        }
      	
        System.out.println(isRe ? "Yes" : "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 x = b; x b if (b >= 100)
            x += a * 1000;
        else if (b >= 10)
            x += a * 100;
        else
            x += a * 10; b >= 100 b 100 x += a * 1000 x a * 1000 a 1000 if (b >= 10)
            x += a * 100;
        else
            x += a * 10; b >= 10 b 10 x += a * 100 x a * 100 a 100 x += a * 10 x a * 10 a 10 boolean isRe = false; isRe false int cnt = 1; cnt 1 int total = cnt * cnt; total cnt * cnt cnt cnt while (total <= x) {
            if (x == total) {
                isRe = true;
                break;
            }
            cnt++;
            total = cnt * cnt;
        } total <= x total x {
            if (x == total) {
                isRe = true;
                break;
            }
            cnt++;
            total = cnt * cnt;
        } if (x == total) {
                isRe = true;
                break;
            } x == total x total {
                isRe = true;
                break;
            } isRe = true isRe true break; cnt++ cnt total = cnt * cnt total cnt * cnt cnt cnt System.out.println(isRe ? "Yes" : "No") System.out.println System.out System System.out isRe ? "Yes" : "No" isRe "Yes" "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 x = b;
        if (b >= 100)
            x += a * 1000;
        else if (b >= 10)
            x += a * 100;
        else
            x += a * 10;

        boolean isRe = false;
        int cnt = 1;
        int total = cnt * cnt;
        while (total <= x) {
            if (x == total) {
                isRe = true;
                break;
            }
            cnt++;
            total = cnt * cnt;
        }
      	
        System.out.println(isRe ? "Yes" : "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 x = b;
        if (b >= 100)
            x += a * 1000;
        else if (b >= 10)
            x += a * 100;
        else
            x += a * 10;

        boolean isRe = false;
        int cnt = 1;
        int total = cnt * cnt;
        while (total <= x) {
            if (x == total) {
                isRe = true;
                break;
            }
            cnt++;
            total = cnt * cnt;
        }
      	
        System.out.println(isRe ? "Yes" : "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 x = b;
        if (b >= 100)
            x += a * 1000;
        else if (b >= 10)
            x += a * 100;
        else
            x += a * 10;

        boolean isRe = false;
        int cnt = 1;
        int total = cnt * cnt;
        while (total <= x) {
            if (x == total) {
                isRe = true;
                break;
            }
            cnt++;
            total = cnt * cnt;
        }
      	
        System.out.println(isRe ? "Yes" : "No");
    }
}
