import java.util.Scanner;
import java.lang.Math;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double a = sc.nextDouble();
        double b = sc.nextDouble();
        double c;
        if (b < 10) {
            c = a*10+b;
        } else if (b < 100) {
            c = a*100+b;
        } else {
            c = a*1000+b;
        }
        double d = Math.sqrt(c);
        if (Math.floor(d) < d) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
} import java.util.Scanner; Scanner java.util import java.lang.Math; Math java.lang public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double a = sc.nextDouble();
        double b = sc.nextDouble();
        double c;
        if (b < 10) {
            c = a*10+b;
        } else if (b < 100) {
            c = a*100+b;
        } else {
            c = a*1000+b;
        }
        double d = Math.sqrt(c);
        if (Math.floor(d) < d) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double a = sc.nextDouble();
        double b = sc.nextDouble();
        double c;
        if (b < 10) {
            c = a*10+b;
        } else if (b < 100) {
            c = a*100+b;
        } else {
            c = a*1000+b;
        }
        double d = Math.sqrt(c);
        if (Math.floor(d) < d) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        double a = sc.nextDouble();
        double b = sc.nextDouble();
        double c;
        if (b < 10) {
            c = a*10+b;
        } else if (b < 100) {
            c = a*100+b;
        } else {
            c = a*1000+b;
        }
        double d = Math.sqrt(c);
        if (Math.floor(d) < d) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) double a = sc.nextDouble(); a sc.nextDouble() sc.nextDouble sc double b = sc.nextDouble(); b sc.nextDouble() sc.nextDouble sc double c; c if (b < 10) {
            c = a*10+b;
        } else if (b < 100) {
            c = a*100+b;
        } else {
            c = a*1000+b;
        } b < 10 b 10 {
            c = a*10+b;
        } c = a*10+b c a*10+b a*10 a 10 b if (b < 100) {
            c = a*100+b;
        } else {
            c = a*1000+b;
        } b < 100 b 100 {
            c = a*100+b;
        } c = a*100+b c a*100+b a*100 a 100 b {
            c = a*1000+b;
        } c = a*1000+b c a*1000+b a*1000 a 1000 b double d = Math.sqrt(c); d Math.sqrt(c) Math.sqrt Math c if (Math.floor(d) < d) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        } Math.floor(d) < d Math.floor(d) Math.floor Math d d {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double a = sc.nextDouble();
        double b = sc.nextDouble();
        double c;
        if (b < 10) {
            c = a*10+b;
        } else if (b < 100) {
            c = a*100+b;
        } else {
            c = a*1000+b;
        }
        double d = Math.sqrt(c);
        if (Math.floor(d) < d) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double a = sc.nextDouble();
        double b = sc.nextDouble();
        double c;
        if (b < 10) {
            c = a*10+b;
        } else if (b < 100) {
            c = a*100+b;
        } else {
            c = a*1000+b;
        }
        double d = Math.sqrt(c);
        if (Math.floor(d) < d) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
} Main
import java.util.Scanner;
import java.lang.Math;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double a = sc.nextDouble();
        double b = sc.nextDouble();
        double c;
        if (b < 10) {
            c = a*10+b;
        } else if (b < 100) {
            c = a*100+b;
        } else {
            c = a*1000+b;
        }
        double d = Math.sqrt(c);
        if (Math.floor(d) < d) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
}