kuku = []
for i in range(1, 10):
    for j in range(1, 10):
        if i * j not in kuku:
            kuku.append(i * j)
n = int(input())
if n in kuku:
    print('Yes')
else:
    print('No')

f2de1319e8ca22e1637bd9e9af82f15549323a09
<mask token>

<mask token>
for i in range(1, 10):
    for j in range(1, 10):
        if i * j not in kuku:
            kuku.append(i * j)
<mask token>
if n in kuku:
    print('Yes')
else:
    print('No')

kuku = []
for i in range(1, 10):
    for j in range(1, 10):
        if i * j not in kuku:
            kuku.append(i * j)
n = int(input())
if n in kuku:
    print('Yes')
else:
    print('No')
