function main(lines) {
 const input = lines.split('\n').map(Number)
 
 let flag = false;
 for(let i=1; i<10; i++){
     if(input[0]%i === 0 && 1<= input[0]/i && input[0]/i <= 9 ){
         flag = true;
         break;
     }
 }
 
 flag ? console.log('Yes') : console.log('No')
}

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