#include <iostream>
   
   int main()
   {
    int n;
    bool f = false;
  
    std::cin >> n;
  
    for (int x = 1; x <= 9; ++x){
      for (int y = 1; y <= 9; ++y){
        if ( n == x*y){
            f = true;
          }
  
      }
    }
  
    if (f == true){
     std::cout << "Yes" << std::endl;
    }else{
    std::cout << "No" << std::endl;
  }
                                                              1,1          先頭
 
include <iostream>
   
   int main()
   {
    int n;
    bool f = false;
  
    std::cin >> n;
  
    for (int x = 1; x <= 9; ++x){
      for (int y = 1; y <= 9; ++y){
        if ( n == x*y){
            f = true;
          }
  
      }
    }
  
    if (f == true){
     std::cout << "Yes" << std::endl;
    }else{
    std::cout << "No" << std::endl;
  }
                                                              }