def check():
  n = int(input())
  if n <= 9:
    return 'Yes'
  elif n > 81:
    return 'No'
  else:
    for i in range(2, 9):
      q, mod = divmod(n, i)
      if mod == 0 and q <= 9:
        return 'Yes'
    return 'No'

print(check())
