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

void main() {
  int B = readln.chomp.to!int;
  foreach(i; 1..10) {
    foreach(k; 1..10) {
      if(B == i*k) {
        "Yes".writeln;
        return;
      }
    }
  }
  "No".writeln;
}
