var input = require('fs').readFileSync('/dev/stdin', 'utf8');

for (var n = 1; n <= 9; n++) {
    if (input % n === 0 && input / n < 10) {
        console.log('Yes');
        process.exit(0);
    }
}
console.log('No');
