import sys

#input = sys.stdin.readline

from collections import Counter



def main():

    n =  int(eval(input( )))

    for i in range(1,10):

        for j in range(1,10):

            if n == i * j:

                print('Yes')

                exit()

    else:

        print('No')



if __name__ == '__main__':

    main()



import sys



def main():

    n = int(eval(input()))



    for i1 in range(1, 10):

        for i2 in range(1,10):

            if n == i1 * i2:

                print('Yes')

                sys.exit()

    else:

        print('No')



if __name__ == '__main__':

    main()
import sys

# input = sys.stdin.readline
from collections import Counter


def main():
    n = int(eval(input()))
    for i in range(1, 10):
        for j in range(1, 10):
            if n == i * j:
                print("Yes")
                exit()
    else:
        print("No")


if __name__ == "__main__":
    main()

import sys


def main():
    n = int(eval(input()))
    for i1 in range(1, 10):
        for i2 in range(1, 10):
            if n == i1 * i2:
                print("Yes")
                sys.exit()
    else:
        print("No")


if __name__ == "__main__":
    main()

- -# input = sys.stdin.readline -from collections import Counter -    for i in range(1, 10): -        for j in range(1, 10): -            if n == i * j: +    for i1 in range(1, 10): +        for i2 in range(1, 10): +            if n == i1 * i2: -                exit() +                sys.exit()