import java.util.ArrayList;
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 入力値を取得
		int a = sc.nextInt();
		int b = sc.nextInt();
		String aStr = String.valueOf(a);
		String bStr = String.valueOf(b);
		String abStr = aStr + bStr;
		int ab = Integer.parseInt(abStr);
		boolean squareFlag = false;
		// 約数を求める
		ArrayList <Integer> divList = new ArrayList<Integer>();
		for(int i = 1; i <= ab ; i++){
			if(ab%i == 0 && ab/i == i){
				squareFlag = true;
			}
		}
		if(squareFlag){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 入力値を取得
		int a = sc.nextInt();
		int b = sc.nextInt();
		String aStr = String.valueOf(a);
		String bStr = String.valueOf(b);
		String abStr = aStr + bStr;
		int ab = Integer.parseInt(abStr);
		boolean squareFlag = false;
		// 約数を求める
		ArrayList <Integer> divList = new ArrayList<Integer>();
		for(int i = 1; i <= ab ; i++){
			if(ab%i == 0 && ab/i == i){
				squareFlag = true;
			}
		}
		if(squareFlag){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 入力値を取得
		int a = sc.nextInt();
		int b = sc.nextInt();
		String aStr = String.valueOf(a);
		String bStr = String.valueOf(b);
		String abStr = aStr + bStr;
		int ab = Integer.parseInt(abStr);
		boolean squareFlag = false;
		// 約数を求める
		ArrayList <Integer> divList = new ArrayList<Integer>();
		for(int i = 1; i <= ab ; i++){
			if(ab%i == 0 && ab/i == i){
				squareFlag = true;
			}
		}
		if(squareFlag){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		// 入力値を取得
		int a = sc.nextInt();
		int b = sc.nextInt();
		String aStr = String.valueOf(a);
		String bStr = String.valueOf(b);
		String abStr = aStr + bStr;
		int ab = Integer.parseInt(abStr);
		boolean squareFlag = false;
		// 約数を求める
		ArrayList <Integer> divList = new ArrayList<Integer>();
		for(int i = 1; i <= ab ; i++){
			if(ab%i == 0 && ab/i == i){
				squareFlag = true;
			}
		}
		if(squareFlag){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc String aStr = String.valueOf(a); aStr String.valueOf(a) String.valueOf String a String bStr = String.valueOf(b); bStr String.valueOf(b) String.valueOf String b String abStr = aStr + bStr; abStr aStr + bStr aStr bStr int ab = Integer.parseInt(abStr); ab Integer.parseInt(abStr) Integer.parseInt Integer abStr boolean squareFlag = false; squareFlag false ArrayList <Integer> divList = new ArrayList<Integer>(); divList new ArrayList<Integer>() for(int i = 1; i <= ab ; i++){
			if(ab%i == 0 && ab/i == i){
				squareFlag = true;
			}
		} int i = 1; int i = 1; i 1 i <= ab i ab i++ i++ i {
			if(ab%i == 0 && ab/i == i){
				squareFlag = true;
			}
		} {
			if(ab%i == 0 && ab/i == i){
				squareFlag = true;
			}
		} if(ab%i == 0 && ab/i == i){
				squareFlag = true;
			} ab%i == 0 && ab/i == i ab%i == 0 ab%i ab i 0 ab/i == i ab/i ab i i {
				squareFlag = true;
			} squareFlag = true squareFlag true if(squareFlag){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} squareFlag {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" String[] args args
import java.util.ArrayList;
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 入力値を取得
		int a = sc.nextInt();
		int b = sc.nextInt();
		String aStr = String.valueOf(a);
		String bStr = String.valueOf(b);
		String abStr = aStr + bStr;
		int ab = Integer.parseInt(abStr);
		boolean squareFlag = false;
		// 約数を求める
		ArrayList <Integer> divList = new ArrayList<Integer>();
		for(int i = 1; i <= ab ; i++){
			if(ab%i == 0 && ab/i == i){
				squareFlag = true;
			}
		}
		if(squareFlag){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}