#include <bits/stdc++.h>

using namespace std;
int num[81]={1,2,3,4,5,6,7,8,9,4,6,8,10,12,14,16,18,15,21,24,27,20,28,36,25,30,35,40,45,42,48,54,49,56,63,64,72,81};
int main()
{
    int n,flag=0;
    cin >>n;
    for(int i=0;i<81;i++)
        if(num[i]==n)
        {
            flag=1;
            break;
        }
    if(flag) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}