'use strict';

const Main = (input) => {
    const N = input;

    const answer = timestable(N);

	console.log(answer);
}

const timestable = number => {
    if(number > 81) {
        return "No"
    }

    const buffer = [];
    for(let i = 1; i <= 9; i++) {
        if(number % i == 0) {
            buffer.push(i);
        }
    }
    
    for(let i = 1; i < buffer.length; i++) {
        for(let n = i; n < buffer.length; n++) {
            if(buffer[i] * buffer[n] == number) {
                return "Yes";
            }
        }
    }

    return "No"
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));