#

# abc144 b

#

import unittest

from io import StringIO

import sys





def input():

    return sys.stdin.readline().rstrip()





def resolve():

    N = int(eval(input()))



    for i in range(1, 10):

        for j in range(1, 10):

            if i*j == N:

                print("Yes")

                exit()

    print("No")





class TestClass(unittest.TestCase):

    def assertIO(self, input, output):

        stdout, stdin = sys.stdout, sys.stdin

        sys.stdout, sys.stdin = StringIO(), StringIO(input)

        resolve()

        sys.stdout.seek(0)

        out = sys.stdout.read()[:-1]

        sys.stdout, sys.stdin = stdout, stdin

        self.assertEqual(out, output)



    def test_入力例_1(self):

        input = """10"""

        output = """Yes"""

        self.assertIO(input, output)



    def test_入力例_2(self):

        input = """50"""

        output = """No"""

        self.assertIO(input, output)



    def test_入力例_3(self):

        input = """81"""

        output = """Yes"""

        self.assertIO(input, output)





if __name__ == "__main__":

    # unittest.main()

    resolve()

#

# abc144 b

#



import sys

from io import StringIO

import unittest





class TestClass(unittest.TestCase):

    def assertIO(self, input, output):

        stdout, stdin = sys.stdout, sys.stdin

        sys.stdout, sys.stdin = StringIO(), StringIO(input)

        resolve()

        sys.stdout.seek(0)

        out = sys.stdout.read()[:-1]

        sys.stdout, sys.stdin = stdout, stdin

        self.assertEqual(out, output)



    def test_入力例_1(self):

        input = """10"""

        output = """Yes"""

        self.assertIO(input, output)



    def test_入力例_2(self):

        input = """50"""

        output = """No"""

        self.assertIO(input, output)



    def test_入力例_3(self):

        input = """81"""

        output = """Yes"""

        self.assertIO(input, output)





def resolve():

    N = int(eval(input()))



    ans = "No"

    for i in range(1, 10):

        if ans == "Yes":

            break

        for j in range(1, 10):

            if i*j == N:

                ans = "Yes"

                break

    print(ans)





if __name__ == "__main__":

    # unittest.main()

    resolve()

#
# abc144 b
#
import unittest
from io import StringIO
import sys


def input():
    return sys.stdin.readline().rstrip()


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


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """10"""
        output = """Yes"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """50"""
        output = """No"""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """81"""
        output = """Yes"""
        self.assertIO(input, output)


if __name__ == "__main__":
    # unittest.main()
    resolve()

#
# abc144 b
#
import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """10"""
        output = """Yes"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """50"""
        output = """No"""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """81"""
        output = """Yes"""
        self.assertIO(input, output)


def resolve():
    N = int(eval(input()))
    ans = "No"
    for i in range(1, 10):
        if ans == "Yes":
            break
        for j in range(1, 10):
            if i * j == N:
                ans = "Yes"
                break
    print(ans)


if __name__ == "__main__":
    # unittest.main()
    resolve()

+import sys +from io import StringIO -from io import StringIO -import sys - - -def input(): -    return sys.stdin.readline().rstrip() - - -def resolve(): -    N = int(eval(input())) -    for i in range(1, 10): -        for j in range(1, 10): -            if i * j == N: -                print("Yes") -                exit() -    print("No") +def resolve(): +    N = int(eval(input())) +    ans = "No" +    for i in range(1, 10): +        if ans == "Yes": +            break +        for j in range(1, 10): +            if i * j == N: +                ans = "Yes" +                break +    print(ans) + +