import sys

N = int(eval(input()))

a = 1

b = 1

if (N == 1)or(N == 81):

    print("Yes")

elif (2 <= N <= 80):

    for a in range(1,10):

        for b in range(1,10):

            if N == a*b:

                print("Yes")

                sys.exit()

            else:

                None

    print("No")

    sys.exit()

elif 82 <= N:

    print("No")
N = int(eval(input()))

ans = 0

for a in range(1,10):

    for b in range(1,10):

        if N == a*b:

            ans = 1

if (ans == 1):

    print("Yes")

else:

    print("No")
import sys

N = int(eval(input()))
a = 1
b = 1
if (N == 1) or (N == 81):
    print("Yes")
elif 2 <= N <= 80:
    for a in range(1, 10):
        for b in range(1, 10):
            if N == a * b:
                print("Yes")
                sys.exit()
            else:
                None
    print("No")
    sys.exit()
elif 82 <= N:
    print("No")

N = int(eval(input()))
ans = 0
for a in range(1, 10):
    for b in range(1, 10):
        if N == a * b:
            ans = 1
if ans == 1:
    print("Yes")
else:
    print("No")

-import sys - -a = 1 -b = 1 -if (N == 1) or (N == 81): +ans = 0 +for a in range(1, 10): +    for b in range(1, 10): +        if N == a * b: +            ans = 1 +if ans == 1: -elif 2 <= N <= 80: -    for a in range(1, 10): -        for b in range(1, 10): -            if N == a * b: -                print("Yes") -                sys.exit() -            else: -                None +else: -    sys.exit() -elif 82 <= N: -    print("No")