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

main(require('fs').readFileSync('/dev/stdin', 'utf8'));