#include <iostream>
using namespace std;
 
int main() {
    int a, b;
    cin << N;
  	for(int a=1;a<=9;a++)for(int b=1;b<=9;b++){
  		if(a * b = N){
          	cout << "Yes";
          	return;
        }
    } 
  			cout << "No";
  			return;
}