import java.util.*;
 
public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String a = sc.next();
    	String b = sc.next();
    	int ab = Integer.parseInt(a+b);
    	boolean key = false;
    	for (int i = 1; i <= Math.sqrt(ab); i++) {
    		if (i*i == ab) {
    			key = true;
    		}
    	}
    	System.out.println(key ? "Yes" : "No");
    }
} import java.util.*; util.* java public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String a = sc.next();
    	String b = sc.next();
    	int ab = Integer.parseInt(a+b);
    	boolean key = false;
    	for (int i = 1; i <= Math.sqrt(ab); i++) {
    		if (i*i == ab) {
    			key = true;
    		}
    	}
    	System.out.println(key ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String a = sc.next();
    	String b = sc.next();
    	int ab = Integer.parseInt(a+b);
    	boolean key = false;
    	for (int i = 1; i <= Math.sqrt(ab); i++) {
    		if (i*i == ab) {
    			key = true;
    		}
    	}
    	System.out.println(key ? "Yes" : "No");
    } main {
    	Scanner sc = new Scanner(System.in);
    	String a = sc.next();
    	String b = sc.next();
    	int ab = Integer.parseInt(a+b);
    	boolean key = false;
    	for (int i = 1; i <= Math.sqrt(ab); i++) {
    		if (i*i == ab) {
    			key = true;
    		}
    	}
    	System.out.println(key ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc int ab = Integer.parseInt(a+b); ab Integer.parseInt(a+b) Integer.parseInt Integer a+b a b boolean key = false; key false for (int i = 1; i <= Math.sqrt(ab); i++) {
    		if (i*i == ab) {
    			key = true;
    		}
    	} int i = 1; int i = 1; i 1 i <= Math.sqrt(ab) i Math.sqrt(ab) Math.sqrt Math ab i++ i++ i {
    		if (i*i == ab) {
    			key = true;
    		}
    	} {
    		if (i*i == ab) {
    			key = true;
    		}
    	} if (i*i == ab) {
    			key = true;
    		} i*i == ab i*i i i ab {
    			key = true;
    		} key = true key true System.out.println(key ? "Yes" : "No") System.out.println System.out System System.out key ? "Yes" : "No" key "Yes" "No" String[] args args public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String a = sc.next();
    	String b = sc.next();
    	int ab = Integer.parseInt(a+b);
    	boolean key = false;
    	for (int i = 1; i <= Math.sqrt(ab); i++) {
    		if (i*i == ab) {
    			key = true;
    		}
    	}
    	System.out.println(key ? "Yes" : "No");
    }
} public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String a = sc.next();
    	String b = sc.next();
    	int ab = Integer.parseInt(a+b);
    	boolean key = false;
    	for (int i = 1; i <= Math.sqrt(ab); i++) {
    		if (i*i == ab) {
    			key = true;
    		}
    	}
    	System.out.println(key ? "Yes" : "No");
    }
} Main
import java.util.*;
 
public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String a = sc.next();
    	String b = sc.next();
    	int ab = Integer.parseInt(a+b);
    	boolean key = false;
    	for (int i = 1; i <= Math.sqrt(ab); i++) {
    		if (i*i == ab) {
    			key = true;
    		}
    	}
    	System.out.println(key ? "Yes" : "No");
    }
}