import java.util.Arrays;
import java.util.Scanner;

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

    void solve(Scanner sc) {
        String a = sc.next();
        String b = sc.next();
        int n = Integer.parseInt(a + b);
        for (int i = 0; i < Math.sqrt(n + 1); i++) {
            if (n == i * i) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            new Main().solve(sc);
        }
    }

    void solve(Scanner sc) {
        String a = sc.next();
        String b = sc.next();
        int n = Integer.parseInt(a + b);
        for (int i = 0; i < Math.sqrt(n + 1); i++) {
            if (n == i * i) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} Main public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            new Main().solve(sc);
        }
    } main {
        try (Scanner sc = new Scanner(System.in);) {
            new Main().solve(sc);
        }
    } try (Scanner sc = new Scanner(System.in);) {
            new Main().solve(sc);
        } {
            new Main().solve(sc);
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) new Main().solve(sc) new Main().solve new Main() sc String[] args args void solve(Scanner sc) {
        String a = sc.next();
        String b = sc.next();
        int n = Integer.parseInt(a + b);
        for (int i = 0; i < Math.sqrt(n + 1); i++) {
            if (n == i * i) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } solve {
        String a = sc.next();
        String b = sc.next();
        int n = Integer.parseInt(a + b);
        for (int i = 0; i < Math.sqrt(n + 1); i++) {
            if (n == i * i) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc int n = Integer.parseInt(a + b); n Integer.parseInt(a + b) Integer.parseInt Integer a + b a b for (int i = 0; i < Math.sqrt(n + 1); i++) {
            if (n == i * i) {
                System.out.println("Yes");
                return;
            }
        } int i = 0; int i = 0; i 0 i < Math.sqrt(n + 1) i Math.sqrt(n + 1) Math.sqrt Math n + 1 n 1 i++ i++ i {
            if (n == i * i) {
                System.out.println("Yes");
                return;
            }
        } {
            if (n == i * i) {
                System.out.println("Yes");
                return;
            }
        } if (n == i * i) {
                System.out.println("Yes");
                return;
            } n == i * i n i * i i i {
                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" Scanner sc sc public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            new Main().solve(sc);
        }
    }

    void solve(Scanner sc) {
        String a = sc.next();
        String b = sc.next();
        int n = Integer.parseInt(a + b);
        for (int i = 0; i < Math.sqrt(n + 1); i++) {
            if (n == i * i) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            new Main().solve(sc);
        }
    }

    void solve(Scanner sc) {
        String a = sc.next();
        String b = sc.next();
        int n = Integer.parseInt(a + b);
        for (int i = 0; i < Math.sqrt(n + 1); i++) {
            if (n == i * i) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

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

    void solve(Scanner sc) {
        String a = sc.next();
        String b = sc.next();
        int n = Integer.parseInt(a + b);
        for (int i = 0; i < Math.sqrt(n + 1); i++) {
            if (n == i * i) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
}