input = require('fs').readFileSync('/dev/stdin', 'utf8')
lines = input.split('\n')
N = lines.shift() * 1

bool = false
for(i=1; i<=9; i++) {
    d = N/i
    if (d <= 9 && d == ~~d) {
        bool = true
        break;
    }
}
console.log(bool ? 'Yes' : 'No')
