n=int(eval(input()))

i=1

check=False

while i<int(n**.5+1):

    if n/i<10 and n%i==0:

        print("Yes")

        check=True

        break

    i+=1



if not check:

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

check=False;

i=1

while i<10:

    j=1

    while j<10:

        if (i*j==n):

            print('Yes')

            check=True

            break;

        j+=1;

    if check:

        break

    i+=1

 

 

if not check:

    print("No")
n = int(eval(input()))
i = 1
check = False
while i < int(n**0.5 + 1):
    if n / i < 10 and n % i == 0:
        print("Yes")
        check = True
        break
    i += 1
if not check:
    print("No")

n = int(eval(input()))
check = False
i = 1
while i < 10:
    j = 1
    while j < 10:
        if i * j == n:
            print("Yes")
            check = True
            break
        j += 1
    if check:
        break
    i += 1
if not check:
    print("No")

+check = False -check = False -while i < int(n**0.5 + 1): -    if n / i < 10 and n % i == 0: -        print("Yes") -        check = True +while i < 10: +    j = 1 +    while j < 10: +        if i * j == n: +            print("Yes") +            check = True +            break +        j += 1 +    if check: