import java.util.Scanner;
 
public class Main {
    public static void main(String args[]){
        Scanner scn = new Scanner(System.in);
        double d = Math.sqrt(Integer.parseInt(scn.next() + scn.next()));
        System.out.println((int)d == d ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]){
        Scanner scn = new Scanner(System.in);
        double d = Math.sqrt(Integer.parseInt(scn.next() + scn.next()));
        System.out.println((int)d == d ? "Yes" : "No");
    }
} Main public static void main(String args[]){
        Scanner scn = new Scanner(System.in);
        double d = Math.sqrt(Integer.parseInt(scn.next() + scn.next()));
        System.out.println((int)d == d ? "Yes" : "No");
    } main {
        Scanner scn = new Scanner(System.in);
        double d = Math.sqrt(Integer.parseInt(scn.next() + scn.next()));
        System.out.println((int)d == d ? "Yes" : "No");
    } Scanner scn = new Scanner(System.in); scn new Scanner(System.in) double d = Math.sqrt(Integer.parseInt(scn.next() + scn.next())); d Math.sqrt(Integer.parseInt(scn.next() + scn.next())) Math.sqrt Math Integer.parseInt(scn.next() + scn.next()) Integer.parseInt Integer scn.next() + scn.next() scn.next() scn.next scn scn.next() scn.next scn System.out.println((int)d == d ? "Yes" : "No") System.out.println System.out System System.out (int)d == d ? "Yes" : "No" (int)d == d (int)d d "Yes" "No" String args[] args public class Main {
    public static void main(String args[]){
        Scanner scn = new Scanner(System.in);
        double d = Math.sqrt(Integer.parseInt(scn.next() + scn.next()));
        System.out.println((int)d == d ? "Yes" : "No");
    }
} public class Main {
    public static void main(String args[]){
        Scanner scn = new Scanner(System.in);
        double d = Math.sqrt(Integer.parseInt(scn.next() + scn.next()));
        System.out.println((int)d == d ? "Yes" : "No");
    }
} Main
import java.util.Scanner;
 
public class Main {
    public static void main(String args[]){
        Scanner scn = new Scanner(System.in);
        double d = Math.sqrt(Integer.parseInt(scn.next() + scn.next()));
        System.out.println((int)d == d ? "Yes" : "No");
    }
}