import sys

n = int(eval(input()))

for i in range(9):

    if n/(i+1) in (1,2,3,4,5,6,7,8,9):

        print('Yes')

        sys.exit()

print('No')
n=int(eval(input()))

ans='No'

for i in range(1,10):

    for j in range(1,10):

        if i*j==n:

            ans='Yes'

            break

print(ans)
import sys

n = int(eval(input()))
for i in range(9):
    if n / (i + 1) in (1, 2, 3, 4, 5, 6, 7, 8, 9):
        print("Yes")
        sys.exit()
print("No")

n = int(eval(input()))
ans = "No"
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            ans = "Yes"
            break
print(ans)

-import sys - -for i in range(9): -    if n / (i + 1) in (1, 2, 3, 4, 5, 6, 7, 8, 9): -        print("Yes") -        sys.exit() -print("No") +ans = "No" +for i in range(1, 10): +    for j in range(1, 10): +        if i * j == n: +            ans = "Yes" +            break +print(ans)