var input = require("fs").readFileSync("/dev/stdin", "utf8");
var n = parseInt(input);

var b = false;
for (var i = 1; i <= 9; i++) {
    if (n % i == 0 && n / i <= 9) {
        b = true;
        break;
    }
}
console.log(b ? "Yes" : "No");
