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

void main() {
  const N = readln.chomp.to!int;
  
  foreach (x; 1..10) foreach (y; x..10) {
    if (x*y == N) {
      "Yes".writeln; return;
    }
  }
  "No".writeln;
}