const args = process.argv.slice(2);
const input = args[0];
const nums = Array.from(Array(9).keys());

for (let i = 0; i < nums.length; i++) {
    const n = nums[i] + 1;

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

console.log('No');