import java.util.Scanner;
public class Main {
	public static void main(String[] args){
	      Scanner sc = new Scanner(System.in);
	      double a = sc.nextInt();
	      double b = sc.nextInt();
          String ans = "No";
          if(b == 100) {
        	  a = a*1000 + b;
          }
          else if(b < 100 && b > 9) {
        	  a = a*100 + b;
          }
          else if(b < 10){
        	  a = a*10 + b;
          }
          for(int i = 1;i<=317;i++) {
        	  if (i == a/i) {
        		  ans = "Yes";
        	  }
          }
	      System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
	      Scanner sc = new Scanner(System.in);
	      double a = sc.nextInt();
	      double b = sc.nextInt();
          String ans = "No";
          if(b == 100) {
        	  a = a*1000 + b;
          }
          else if(b < 100 && b > 9) {
        	  a = a*100 + b;
          }
          else if(b < 10){
        	  a = a*10 + b;
          }
          for(int i = 1;i<=317;i++) {
        	  if (i == a/i) {
        		  ans = "Yes";
        	  }
          }
	      System.out.println(ans);
	}
} Main public static void main(String[] args){
	      Scanner sc = new Scanner(System.in);
	      double a = sc.nextInt();
	      double b = sc.nextInt();
          String ans = "No";
          if(b == 100) {
        	  a = a*1000 + b;
          }
          else if(b < 100 && b > 9) {
        	  a = a*100 + b;
          }
          else if(b < 10){
        	  a = a*10 + b;
          }
          for(int i = 1;i<=317;i++) {
        	  if (i == a/i) {
        		  ans = "Yes";
        	  }
          }
	      System.out.println(ans);
	} main {
	      Scanner sc = new Scanner(System.in);
	      double a = sc.nextInt();
	      double b = sc.nextInt();
          String ans = "No";
          if(b == 100) {
        	  a = a*1000 + b;
          }
          else if(b < 100 && b > 9) {
        	  a = a*100 + b;
          }
          else if(b < 10){
        	  a = a*10 + b;
          }
          for(int i = 1;i<=317;i++) {
        	  if (i == a/i) {
        		  ans = "Yes";
        	  }
          }
	      System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) double a = sc.nextInt(); a sc.nextInt() sc.nextInt sc double b = sc.nextInt(); b sc.nextInt() sc.nextInt sc String ans = "No"; ans "No" if(b == 100) {
        	  a = a*1000 + b;
          }
          else if(b < 100 && b > 9) {
        	  a = a*100 + b;
          }
          else if(b < 10){
        	  a = a*10 + b;
          } b == 100 b 100 {
        	  a = a*1000 + b;
          } a = a*1000 + b a a*1000 + b a*1000 a 1000 b if(b < 100 && b > 9) {
        	  a = a*100 + b;
          }
          else if(b < 10){
        	  a = a*10 + b;
          } b < 100 && b > 9 b < 100 b 100 b > 9 b 9 {
        	  a = a*100 + b;
          } a = a*100 + b a a*100 + b a*100 a 100 b if(b < 10){
        	  a = a*10 + b;
          } b < 10 b 10 {
        	  a = a*10 + b;
          } a = a*10 + b a a*10 + b a*10 a 10 b for(int i = 1;i<=317;i++) {
        	  if (i == a/i) {
        		  ans = "Yes";
        	  }
          } int i = 1; int i = 1; i 1 i<=317 i 317 i++ i++ i {
        	  if (i == a/i) {
        		  ans = "Yes";
        	  }
          } {
        	  if (i == a/i) {
        		  ans = "Yes";
        	  }
          } if (i == a/i) {
        		  ans = "Yes";
        	  } i == a/i i a/i a i {
        		  ans = "Yes";
        	  } ans = "Yes" ans "Yes" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args){
	      Scanner sc = new Scanner(System.in);
	      double a = sc.nextInt();
	      double b = sc.nextInt();
          String ans = "No";
          if(b == 100) {
        	  a = a*1000 + b;
          }
          else if(b < 100 && b > 9) {
        	  a = a*100 + b;
          }
          else if(b < 10){
        	  a = a*10 + b;
          }
          for(int i = 1;i<=317;i++) {
        	  if (i == a/i) {
        		  ans = "Yes";
        	  }
          }
	      System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args){
	      Scanner sc = new Scanner(System.in);
	      double a = sc.nextInt();
	      double b = sc.nextInt();
          String ans = "No";
          if(b == 100) {
        	  a = a*1000 + b;
          }
          else if(b < 100 && b > 9) {
        	  a = a*100 + b;
          }
          else if(b < 10){
        	  a = a*10 + b;
          }
          for(int i = 1;i<=317;i++) {
        	  if (i == a/i) {
        		  ans = "Yes";
        	  }
          }
	      System.out.println(ans);
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
	      Scanner sc = new Scanner(System.in);
	      double a = sc.nextInt();
	      double b = sc.nextInt();
          String ans = "No";
          if(b == 100) {
        	  a = a*1000 + b;
          }
          else if(b < 100 && b > 9) {
        	  a = a*100 + b;
          }
          else if(b < 10){
        	  a = a*10 + b;
          }
          for(int i = 1;i<=317;i++) {
        	  if (i == a/i) {
        		  ans = "Yes";
        	  }
          }
	      System.out.println(ans);
	}
}