"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = parseInt(arg[0]);
    
    for(let i=1; i<10; i++) {
       for(let j=1; j<10; j++) {
            if(i * j === N) {
                console.log("Yes");
                return;
            }
        } 
    }
    
    console.log("No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));