# import sys

#

# sys.setrecursionlimit(10 ** 7)

#

# input = sys.stdin.readline

# rstrip()



# int(input())

# map(int, input().split())



n = int(eval(input()))



st = {i * j for i in range(1, 10) for j in range(1, 10)}



if n in st:

    print('Yes')

else:

    print('No')

def main():

    N = int(eval(input()))



    def check():

        for i in range(1, 10):

            for j in range(1, 10):

                if i * j == N:

                    return True

        return False



    cond = check()



    print(('Yes' if cond else 'No'))





if __name__ == '__main__':

    main()

# import sys
#
# sys.setrecursionlimit(10 ** 7)
#
# input = sys.stdin.readline
# rstrip()
# int(input())
# map(int, input().split())
n = int(eval(input()))
st = {i * j for i in range(1, 10) for j in range(1, 10)}
if n in st:
    print("Yes")
else:
    print("No")

def main():
    N = int(eval(input()))

    def check():
        for i in range(1, 10):
            for j in range(1, 10):
                if i * j == N:
                    return True
        return False

    cond = check()
    print(("Yes" if cond else "No"))


if __name__ == "__main__":
    main()

-# import sys -# -# sys.setrecursionlimit(10 ** 7) -# -# input = sys.stdin.readline -# rstrip() -# int(input()) -# map(int, input().split()) -n = int(eval(input())) -st = {i * j for i in range(1, 10) for j in range(1, 10)} -if n in st: -    print("Yes") -else: -    print("No") +def main(): +    N = int(eval(input())) + +    def check(): +        for i in range(1, 10): +            for j in range(1, 10): +                if i * j == N: +                    return True +        return False + +    cond = check() +    print(("Yes" if cond else "No")) + + +if __name__ == "__main__": +    main()