var n = require('fs').readFileSync('/dev/stdin', 'utf8');
for (var r = 1; r <= 9; r++) {
    for (var c = 1; c <= 9; c++) {
        if (r * c === n) {
            console.log('Yes');
            process.exit(0);
        }
    }
}
console.log('No');