const lst = Array.from({length:10},(v,k) => k)
    
    const kuku = []
    lst.map(i => {
        for(var j = 1;j<10;j++) {
            kuku.push(i*lst[j])
        }
    })
    
    if (kuku.includes(n)) {
        console.log("Yes")
    }else{
        console.log("No")
    }
}

const input = require("fs").readFileSync("/dev/stdin","utf8").split("\n")[0]
main(input)