import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
//        DecimalFormat df = new DecimalFormat("0.00000000");

        String a = sc.next();
        String b = sc.next();
        boolean squareNumber = false;
        final int C = Integer.parseInt(a+b);
        for (int i = 1; i < C; i++) {
            if (i * i == C) squareNumber = true;
        }
        out.println(squareNumber ? "Yes" : "No");

        out.flush();
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
//        DecimalFormat df = new DecimalFormat("0.00000000");

        String a = sc.next();
        String b = sc.next();
        boolean squareNumber = false;
        final int C = Integer.parseInt(a+b);
        for (int i = 1; i < C; i++) {
            if (i * i == C) squareNumber = true;
        }
        out.println(squareNumber ? "Yes" : "No");

        out.flush();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
//        DecimalFormat df = new DecimalFormat("0.00000000");

        String a = sc.next();
        String b = sc.next();
        boolean squareNumber = false;
        final int C = Integer.parseInt(a+b);
        for (int i = 1; i < C; i++) {
            if (i * i == C) squareNumber = true;
        }
        out.println(squareNumber ? "Yes" : "No");

        out.flush();
    } main {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
//        DecimalFormat df = new DecimalFormat("0.00000000");

        String a = sc.next();
        String b = sc.next();
        boolean squareNumber = false;
        final int C = Integer.parseInt(a+b);
        for (int i = 1; i < C; i++) {
            if (i * i == C) squareNumber = true;
        }
        out.println(squareNumber ? "Yes" : "No");

        out.flush();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc boolean squareNumber = false; squareNumber false final int C = Integer.parseInt(a+b); C Integer.parseInt(a+b) Integer.parseInt Integer a+b a b for (int i = 1; i < C; i++) {
            if (i * i == C) squareNumber = true;
        } int i = 1; int i = 1; i 1 i < C i C i++ i++ i {
            if (i * i == C) squareNumber = true;
        } {
            if (i * i == C) squareNumber = true;
        } if (i * i == C) squareNumber = true; i * i == C i * i i i C squareNumber = true squareNumber true out.println(squareNumber ? "Yes" : "No") out.println out squareNumber ? "Yes" : "No" squareNumber "Yes" "No" out.flush() out.flush out String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
//        DecimalFormat df = new DecimalFormat("0.00000000");

        String a = sc.next();
        String b = sc.next();
        boolean squareNumber = false;
        final int C = Integer.parseInt(a+b);
        for (int i = 1; i < C; i++) {
            if (i * i == C) squareNumber = true;
        }
        out.println(squareNumber ? "Yes" : "No");

        out.flush();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
//        DecimalFormat df = new DecimalFormat("0.00000000");

        String a = sc.next();
        String b = sc.next();
        boolean squareNumber = false;
        final int C = Integer.parseInt(a+b);
        for (int i = 1; i < C; i++) {
            if (i * i == C) squareNumber = true;
        }
        out.println(squareNumber ? "Yes" : "No");

        out.flush();
    }
} Main
import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
//        DecimalFormat df = new DecimalFormat("0.00000000");

        String a = sc.next();
        String b = sc.next();
        boolean squareNumber = false;
        final int C = Integer.parseInt(a+b);
        for (int i = 1; i < C; i++) {
            if (i * i == C) squareNumber = true;
        }
        out.println(squareNumber ? "Yes" : "No");

        out.flush();
    }
}