n = int(eval(input()))



def solve(n: int) -> str:

  for l in range(1, 10):

    for m in range(1, 10):

      if n == l * m:

        return "Yes"

  return "No"

  

print((solve(n)))
n = int(eval(input()))

s = set([x for x in [x for x in range(1, 10)] if n % x == 0 and n / x < 10])

print(("No" if len(s) == 0 else "Yes"))
n = int(eval(input()))


def solve(n: int) -> str:
    for l in range(1, 10):
        for m in range(1, 10):
            if n == l * m:
                return "Yes"
    return "No"


print((solve(n)))

n = int(eval(input()))
s = set([x for x in [x for x in range(1, 10)] if n % x == 0 and n / x < 10])
print(("No" if len(s) == 0 else "Yes"))

- - -def solve(n: int) -> str: -    for l in range(1, 10): -        for m in range(1, 10): -            if n == l * m: -                return "Yes" -    return "No" - - -print((solve(n))) +s = set([x for x in [x for x in range(1, 10)] if n % x == 0 and n / x < 10]) +print(("No" if len(s) == 0 else "Yes"))