function Main(input) {
    var A = parseInt(input[0], 10);
    
    for (var i = 1; i <= 9; i++) {
        if (A % i === 0) {
            if (A / i <= 9) {
                return console.log('Yes');
            }
        }
    }
    return console.log('No');
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));