N = int(eval(input()))

# N>81のときはn*nで表せないので不敵

if N>81:

    print('No')

else:

    import numpy as np

    n=np.array([1,2,3,4,5,6,7,8,9])

    amari=N%n

    shou=N//n

    if np.any((amari==0)*(shou<=9)):

        print('Yes')

    else:

        print('No')

N = int(eval(input()))

for i in range(1,10):

    if not N%i == 0:

        continue

    rest = N/i

    if rest<10:

        print('Yes')

        exit()



print('No')
N = int(eval(input()))
# N>81のときはn*nで表せないので不敵
if N > 81:
    print("No")
else:
    import numpy as np

    n = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9])
    amari = N % n
    shou = N // n
    if np.any((amari == 0) * (shou <= 9)):
        print("Yes")
    else:
        print("No")

N = int(eval(input()))
for i in range(1, 10):
    if not N % i == 0:
        continue
    rest = N / i
    if rest < 10:
        print("Yes")
        exit()
print("No")

-# N>81のときはn*nで表せないので不敵 -if N > 81: -    print("No") -else: -    import numpy as np - -    n = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9]) -    amari = N % n -    shou = N // n -    if np.any((amari == 0) * (shou <= 9)): +for i in range(1, 10): +    if not N % i == 0: +        continue +    rest = N / i +    if rest < 10: -    else: -        print("No") +        exit() +print("No")