N = int(eval(input()))

FLG = False



for i in range(1,10):

    if 0 < (N/i) < 10 and (N/i).is_integer():

        FLG = True

        break



if FLG:

    print("Yes")

else:

    print("No")
def judge(n):

    for i in range(1,10):

        for j in range(1,10):

            if i*j == n:

                return True

    return False





N = int(eval(input()))



if judge(N):

    print("Yes")

else:

    print("No")
N = int(eval(input()))
FLG = False
for i in range(1, 10):
    if 0 < (N / i) < 10 and (N / i).is_integer():
        FLG = True
        break
if FLG:
    print("Yes")
else:
    print("No")

def judge(n):
    for i in range(1, 10):
        for j in range(1, 10):
            if i * j == n:
                return True
    return False


N = int(eval(input()))
if judge(N):
    print("Yes")
else:
    print("No")

+def judge(n): +    for i in range(1, 10): +        for j in range(1, 10): +            if i * j == n: +                return True +    return False + + -FLG = False -for i in range(1, 10): -    if 0 < (N / i) < 10 and (N / i).is_integer(): -        FLG = True -        break -if FLG: +if judge(N):