import sys

from pprint import pprint



def solve(n):

    for i in range(1, 10):

        for j in range(1, 10):

            if n == i*j:

                print("Yes")

                return

    print("No")



if __name__ == '__main__':

    n = int(sys.stdin.readline().strip())

    solve(n)
import sys



N = int(sys.stdin.readline())

for i in range(1, 10):

    for j in range(1, 10):

        if i * j == N:

            print("Yes")

            sys.exit()



print("No")
import sys
from pprint import pprint


def solve(n):
    for i in range(1, 10):
        for j in range(1, 10):
            if n == i * j:
                print("Yes")
                return
    print("No")


if __name__ == "__main__":
    n = int(sys.stdin.readline().strip())
    solve(n)

import sys

N = int(sys.stdin.readline())
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == N:
            print("Yes")
            sys.exit()
print("No")

-from pprint import pprint - -def solve(n): -    for i in range(1, 10): -        for j in range(1, 10): -            if n == i * j: -                print("Yes") -                return -    print("No") - - -if __name__ == "__main__": -    n = int(sys.stdin.readline().strip()) -    solve(n) +N = int(sys.stdin.readline()) +for i in range(1, 10): +    for j in range(1, 10): +        if i * j == N: +            print("Yes") +            sys.exit() +print("No")