let input_line = readLine()!.characters.split{$0==" "}.map { Int(String($0))! }
let n = input_line[0]
var canCalcTakahashi = (1...9).map { n % $0 == 0 && n / $0 < 10 }.isEmpty
print(canCalcTakahashi ? "Yes" : "No")