import sys





def solve():

    sys.setrecursionlimit(2000)

    input = sys.stdin.readline

    mod = 10 ** 9 + 7

    n = int(input().rstrip('\n'))

    for i in range(1, 10):

        for j in range(1, 10):

            if n == i * j:

                print("Yes")

                exit()

    print("No")





if __name__ == '__main__':

    solve()

import sys





def solve():

    readline = sys.stdin.buffer.readline

    mod = 10 ** 9 + 7

    n = int(readline())

    for i in range(1, 10):

        for j in range(1, 10):

            if i * j == n:

                print("Yes")

                exit()

    print("No")





if __name__ == '__main__':

    solve()

import sys


def solve():
    sys.setrecursionlimit(2000)
    input = sys.stdin.readline
    mod = 10**9 + 7
    n = int(input().rstrip("\n"))
    for i in range(1, 10):
        for j in range(1, 10):
            if n == i * j:
                print("Yes")
                exit()
    print("No")


if __name__ == "__main__":
    solve()

import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10**9 + 7
    n = int(readline())
    for i in range(1, 10):
        for j in range(1, 10):
            if i * j == n:
                print("Yes")
                exit()
    print("No")


if __name__ == "__main__":
    solve()

-    sys.setrecursionlimit(2000) -    input = sys.stdin.readline +    readline = sys.stdin.buffer.readline -    n = int(input().rstrip("\n")) +    n = int(readline()) -            if n == i * j: +            if i * j == n: