import java.util.*;

public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        // 主処理
        int num = Integer.parseInt(Integer.toString(a) + Integer.toString(b));
        boolean judge = (int) Math.sqrt(num) * (int) Math.sqrt(num) == num;
        String result = judge ? "Yes" : "No";

        // 出力
        System.out.println(result);
        sc.close();
    }
} import java.util.*; util.* java public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        // 主処理
        int num = Integer.parseInt(Integer.toString(a) + Integer.toString(b));
        boolean judge = (int) Math.sqrt(num) * (int) Math.sqrt(num) == num;
        String result = judge ? "Yes" : "No";

        // 出力
        System.out.println(result);
        sc.close();
    }
} Main public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        // 主処理
        int num = Integer.parseInt(Integer.toString(a) + Integer.toString(b));
        boolean judge = (int) Math.sqrt(num) * (int) Math.sqrt(num) == num;
        String result = judge ? "Yes" : "No";

        // 出力
        System.out.println(result);
        sc.close();
    } main {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        // 主処理
        int num = Integer.parseInt(Integer.toString(a) + Integer.toString(b));
        boolean judge = (int) Math.sqrt(num) * (int) Math.sqrt(num) == num;
        String result = judge ? "Yes" : "No";

        // 出力
        System.out.println(result);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int num = Integer.parseInt(Integer.toString(a) + Integer.toString(b)); num Integer.parseInt(Integer.toString(a) + Integer.toString(b)) Integer.parseInt Integer Integer.toString(a) + Integer.toString(b) Integer.toString(a) Integer.toString Integer a Integer.toString(b) Integer.toString Integer b boolean judge = (int) Math.sqrt(num) * (int) Math.sqrt(num) == num; judge (int) Math.sqrt(num) * (int) Math.sqrt(num) == num (int) Math.sqrt(num) * (int) Math.sqrt(num) (int) Math.sqrt(num) Math.sqrt Math num (int) Math.sqrt(num) Math.sqrt Math num num String result = judge ? "Yes" : "No"; result judge ? "Yes" : "No" judge "Yes" "No" System.out.println(result) System.out.println System.out System System.out result sc.close() sc.close sc String args[] args public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        // 主処理
        int num = Integer.parseInt(Integer.toString(a) + Integer.toString(b));
        boolean judge = (int) Math.sqrt(num) * (int) Math.sqrt(num) == num;
        String result = judge ? "Yes" : "No";

        // 出力
        System.out.println(result);
        sc.close();
    }
} public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        // 主処理
        int num = Integer.parseInt(Integer.toString(a) + Integer.toString(b));
        boolean judge = (int) Math.sqrt(num) * (int) Math.sqrt(num) == num;
        String result = judge ? "Yes" : "No";

        // 出力
        System.out.println(result);
        sc.close();
    }
} Main
import java.util.*;

public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        // 主処理
        int num = Integer.parseInt(Integer.toString(a) + Integer.toString(b));
        boolean judge = (int) Math.sqrt(num) * (int) Math.sqrt(num) == num;
        String result = judge ? "Yes" : "No";

        // 出力
        System.out.println(result);
        sc.close();
    }
}
