N = int(input())

num = [i for i in range(1, 10)]

ans = "No"
for n in num:
  if N % n == 0 and N // n <= 9:
    ans = "Yes"
    break
print(ans)
5426b2fa30189baad6bf40b44948169b3f877dbf
<mask token>

<mask token>
for n in num:
    if N % n == 0 and N // n <= 9:
        ans = 'Yes'
        break
print(ans)

N = int(input())
num = [i for i in range(1, 10)]
ans = 'No'
for n in num:
    if N % n == 0 and N // n <= 9:
        ans = 'Yes'
        break
print(ans)

N = int(input())

num = [i for i in range(1, 10)]

ans = "No"
for n in num:
  if N % n == 0 and N // n <= 9:
    ans = "Yes"
    break
print(ans)