#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	cin>>n;
	bool flag=0;
	for(int i=1;i<=9;++i){
	    if(!(n%i)&&(n/i)<10){flag=1;break;}
	}
	if(flag)cout<<"Yes";
	else cout<<"No";
}