def main(n):

    list1 = list(range(1, 10))

    list2 = list(range(1, 10))

    qq = set()

    for a in list1:

        for b in list2:

            qq.add(a * b)

    if n in qq:

        return 'Yes'

    else:

        return 'No'





if __name__ == '__main__':

    N = int(eval(input()))

    print((main(N)))

from itertools import product



N = int(eval(input()))



for a, b in product(list(range(1, 9 + 1)), repeat=2):

    if N == a * b:

        print('Yes')

        break

else:

    print('No')

def main(n):
    list1 = list(range(1, 10))
    list2 = list(range(1, 10))
    qq = set()
    for a in list1:
        for b in list2:
            qq.add(a * b)
    if n in qq:
        return "Yes"
    else:
        return "No"


if __name__ == "__main__":
    N = int(eval(input()))
    print((main(N)))

from itertools import product

N = int(eval(input()))
for a, b in product(list(range(1, 9 + 1)), repeat=2):
    if N == a * b:
        print("Yes")
        break
else:
    print("No")

-def main(n): -    list1 = list(range(1, 10)) -    list2 = list(range(1, 10)) -    qq = set() -    for a in list1: -        for b in list2: -            qq.add(a * b) -    if n in qq: -        return "Yes" -    else: -        return "No" +from itertools import product - -if __name__ == "__main__": -    N = int(eval(input())) -    print((main(N))) +N = int(eval(input())) +for a, b in product(list(range(1, 9 + 1)), repeat=2): +    if N == a * b: +        print("Yes") +        break +else: +    print("No")