import std.stdio, std.string, std.range, std.conv, std.array, std.algorithm, std.math, std.typecons;

void main() {
    auto N = readln.chomp.to!long;
    writeln(
        cartesianProduct(iota(10), iota(10))
        .find!(t => t[0] * t[1] == N)
        .empty ? "No" : "Yes");
}

