Public Class Program
  Shared Sub Main()
    Dim n As Integer = Integer.Parse(Console.ReadLine())
    Dim ans As String = "No"
    If n <= 81 Then
      For i As Integer = 9 To 1 Step -1
        Dim m As Integer = n \ i
        If m * i = n AndAlso m < 10 Then 
          ans = "Yes"
          Exit For
        End If
      Next
    End If
    Console.WriteLine(ans)
  End Sub
End Class