import std;

alias sread = () => readln.chomp();
alias lread = () => readln.chomp.to!long();
alias aryread(T = long) = () => readln.split.to!(T[]);

void main()
{
    auto n = lread();
    foreach (i; 0 .. 10)
    {
        foreach (j; 0 .. 10)
        {
            if (i * j == n)
            {
                writeln("Yes");
                return;
            }
        }
    }
    writeln("No");

}

void scan(L...)(ref L A)
{
    auto l = readln.split;
    foreach (i, T; L)
    {
        A[i] = l[i].to!T;
    }
}
