import std.stdio, std.string, std.conv;

void main() {
    int n = readln.chomp.to!int;
    bool ok;
    foreach (i; 1 .. 10) {
        foreach (j; 1 .. 10) {
            if (i * j == n) ok = true;
        }
    }
    writeln(ok ? "Yes" : "No");
}