import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
     
      int n = sc.nextInt();
      
      for(int i = 1; i <= 9; i++){
        for(int j = 1; j <= 9; j++){
          if(i*j == n){
            System.out.println("Yes");
              break;
          }else{
            System.out.println("No")
          }
      
      sc.close();
    }
}
import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
     
      int n = sc.nextInt();
      int count = 0;
      
      for(int i = 1; i <= 9; i++){
        for(int j = 1; j <= 9; j++){
          if(i*j == n){
            count = -1;
            break;
          }else{
            count++;
          }
        }
        
        if(count = -1){
          System.out.println("Yes");
        }else{
          System.out.println("No");
        }
          
      
      sc.close();
    }
}
提出情報