Problem:
 Score : 200 points    Problem Statement Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N , determine whether N can be represented as the product of two integers between 1 and 9 . If it can, print Yes ; if it cannot, print No .      Constraints  1 \leq N \leq 100  N is an integer.         Input Input is given from Standard Input in the following format:  N       Output If N can be represented as the product of two integers between 1 and 9 (inclusive), print Yes ; if it cannot, print No .        Sample Input 1 10      Sample Output 1 Yes  10 can be represented as, for example, 2 \times 5 .       Sample Input 2 50      Sample Output 2 No  50 cannot be represented as the product of two integers between 1 and 9 .       Sample Input 3 81      Sample Output 3 Yes

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

Solution (Python):
n = int(input())

for i in range(1,10):
    for j in range(1,10):
        if i * j == n:
            print("Yes")
            exit()
print("No")

Solution (Python):
n = int(input())

A = []
for i in range (10):
    for j in range(10):
        A.append(i*j)

if A.count(n) != 0:
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())
for i in range(10):
    for j in range(10):
        if i*j ==n:
            print("Yes")
            exit()
print("No")

Solution (Python):
n = int(input())
flag = "ng"
for i in range(1,10):
  dum1,dum2 = divmod(n,i)
  if dum2 == 0 and dum1 < 10:
    flag = "ok"
    break
if flag == "ok":
  print("Yes")
else:
  print("No")

Solution (Python):
n=int(input())
for i in range(1,10):
    for j in range(1,10):
        if i*j==n:
            print('Yes')
            exit()
print('No')

Solution (Python):
N = int(input())

for i in range(1, 10):
    if N % i == 0 and N // i < 10:
        print('Yes')
        exit()
print('No')

Solution (Python):
N=int(input())
l=[]
for i in range(1,10):
  for j in range(1,10):
    l.append(i*j)

if N in l:
  print('Yes')
else:
  print('No')

Solution (Python):
n=int(input())
l=[]
for i in range(1,10):
  for k in range(i,10):
    l.append(i*k)
if n in l:
  print("Yes")
else:
  print("No")

Solution (Python):
n = int(input())

kuku = [i * j for i in range(1, 10) for j in range(1, 10)]

if n in kuku:
    print('Yes')
else:
    print('No')

Solution (Python):
N = int(input())
flag = False
for i in range(10):
    for j in range(10):
        if i * j == N:
            flag = True
            break
    else:
        continue
    break

print("Yes" if flag else "No")

Solution (Python):
N=int(input())
d=[]
for i in range(10):
    for k in range(10):
        d.append(i*k)
if N in d:
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())
list = []

for i in range (1,10):
	for j in range(1,10):
		list.append(i*j)

if n in list:
	print('Yes')
else:
	print('No')

Solution (Python):

N = int(input())
ans="No"

for i in range(1,10):
    syou,mod=divmod(N,i)
    if syou<10 and mod ==0:
        ans ="Yes"
        break
print(ans)

Solution (Python):
result = int(input())
count = 0 
for i in range(1, 10):
  for j in range(1, 10):
    if i * j == result:
      count += 1
if count == 0:
  print("No")
else:
  print("Yes")

Solution (Python):
"""
int(input())
map(int,input().split())
list(map(int,input().split()))

"""

x=int(input())
ans="No"
for  i  in range(1,10):
    for j in range(1,10):
        
        if((i*j)==x):
            ans="Yes"
print(ans)

Solution (Python):
n = int(input())

flg = False
for i in range(1,10):
  for j in range(1,10):
    if i*j==n:
      flg = True

if flg:
  print("Yes")
else:
  print("No")

Solution (Python):
n = int(input())
for i in range(9):
  for j in range(9):
    if (i+1) * (j+1) == n:
      print('Yes')
      exit()
print('No')

Solution (Python):
import sys


def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def MI1(): return map(int1, sys.stdin.readline().split())

def LI(): return list(map(int, sys.stdin.readline().split()))

def LLI(rows_number): return [LI() for _ in range(rows_number)]
def SR(): return sys.stdin.readline().rstrip()

ascii_lowercase = 'abcdefghijklmnopqrstuvwxyz'
ascii_uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ascii_uppercase2 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ'


p2D = lambda x: print(*x, sep="\n")
p2E = lambda x: print(''.join(x))


n=int(input())

for i in range(1,10):
    if n%i==0 and n/i < 10:
        print('Yes')
        exit()
print('No')

Solution (Python):
n=int(input())
for i in range(1,10):
    if n%(10-i)==0:
        n/=(10-i)
        break
for j in range(1,10):
    if n%(10-j)==0:
        n/=(10-j)
        break
if n==1:
    print("Yes")
else:
    print("No")

Solution (Python):
N=int(input())

x_l = []
for i in range(1,10):
    for j in range(1,10):
        x_l.append(i*j)
if N in x_l:
    print('Yes')
else:
    print('No')

Solution (Python):
N = int(input())
a = [1, 2, 3, 4, 5, 6, 7, 8, 9]
b = [1, 2, 3, 4, 5, 6, 7, 8, 9]
C = [x * y for x in a for y in b ]

if N in C:
    print("Yes")
else:
    print("No")

Solution (Python):
N=int(input())
a=list()
for i in range(9):
    for j in range(9):
        a.append((i+1)*(j+1))
print('Yes' if N in a else 'No')

Solution (Python):
n=int(input())
x_set=set()
for i in range(1,10):
    for j in range(1,10):
        x_set.update({i*j})
if n in x_set:
    print("Yes")
else:
    print("No")

Solution (Python):
def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**7)
    from collections import Counter, deque
    
    from itertools import combinations, permutations, accumulate, groupby
    
    from bisect import bisect_left,bisect_right
    from heapq import heapify, heappop, heappush
    from math import floor, ceil
    

    
    

    n = int(input())
    for i in range(1, 10):
        for j in range(1, 10):
            if i*j == n:
                print('Yes')
                exit()
    print('No')




if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
for i in range(1,10):
    if n % i == 0:
        if 1 <= n // i <= 9:
            print("Yes")
            break
else:
    print("No")

Solution (Python):
N = int(input())
tmp = 0
count = 0
for i in range(1,10):
  for k in range(1,10):
    tmp = i * k
    if(tmp == N):
      count += 1
if(count >= 1):
  print("Yes")
else:
  print("No")

Solution (Python):
import numpy as np
N = int(input())
d = int(np.sqrt(N))
d_max = 0
for i in range(1,d+1):
  if N % i == 0:
    d_max = i
if d_max > 9:
  print('No')
elif N / d_max > 9:
  print('No')
else:
  print('Yes')

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

Solution (Python):
n = int(input())

for i in range(1,10):
    for j in range(1,10):
        if i*j == n:
            print("Yes")
            exit()
print("No")

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

Solution (Python):
N = int(input())
res = False
for i in range(1, 10):
    for j in range(i, 10):
        if N == i * j:
            res = True
            break
if res:
    print("Yes")
else:
    print("No")

Solution (Python):
a=[]

for i in range(1,10):
    for j in range(i,10):
        a.append(i*j)
n=int(input())
if n in a:
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())

for i in range(1,10):
  if n%i == 0:
    if int(n/i) <= 9:
      print('Yes')
      exit()
      
print('No')

Solution (Python):
n = int(input())
kuku = []
for i in range(1, 10):
    for j in range(i, 10):
        kuku.append(i * j)
ans = "Yes" if n in kuku else "No"
print(ans)

Solution (Python):
n=int(input())
for i in range(1,10):
    for j in range(1,10):
        if i*j==n:
            print("Yes")
            exit()
print("No")

Solution (Python):
n=int(input())
list = [j*i for j in range(1, 10) for i in range(1,10)]

print('Yes' if n in list else 'No')

Solution (Python):
N = int(input())

i = 1
for x in range(1,10):
    for y in range(1,10):
        if x*y == N:
            i = 0

print("YNeos"[i::2])

Solution (Python):
N = int(input())
 
y = 0
for i in range(1, 10):
    for j in range(1, 10):
        if N == i*j:
            y = 1
            break
    if y:
        break
 
if y:
    print("Yes")
else:
    print("No")

Solution (Python):
import itertools as itr
import operator  as op

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

	if N in itr.starmap(op.mul, itr.combinations_with_replacement(range(1, 10), r = 2)):
		print("Yes")
	else:
		print("No")
	
	return


main()

Solution (Python):
import itertools as itr

def main():
	N = int(input())
	
	if N in [x * y for x, y in itr.product(range(1, 10), repeat = 2)]:
		print("Yes")
	else:
		print("No")
	
	return


main()

Solution (Python):
import itertools

def main():
	N = int(input())
	
	if N in [x * y for x, y in itertools.product(range(1, 10), repeat = 2)]:
		print("Yes")
	else:
		print("No")
	
	return


main()

Solution (Python):
N = int(input())
L = []
for i in range(1,10):
    for j in range(1,10):
        L.append(i*j)
if N in L:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys
N = int(input())

for i in range(1,10):
  if N // i < 10 and N % i == 0:
    print('Yes')
    sys.exit()
    
print('No')

Solution (Python):
N=int(input())
for i in range(9):
	for j in range(9):
		if (i+1)*(j+1)==N:
			print('Yes')
			exit()
print('No')

Solution (Python):
n=int(input())

count=0
for i in range(1,10):
  if n%i==0:
    s=n//i
    s=str(s)
    if len(s)==1:
      count+=1
    else:
      count+=0
  else:
    count+=0
if count>=1:
  print("Yes")
else:
  print("No")

Solution (Python):
a = int(input())
 
b = 0
for i in range(1, 10):
    for j in range(1, 10):
        if a == i*j:
            b = 1
            break
    if b:
        break
 
if b:
    print("Yes")
else:
    print("No")

Solution (Python):
def yes_no(flg):
    """
        if True return Yes
        if False return No
    """
    if flg:
        print('Yes')
    else:
        print('No')

n = int(input())
flg = False
for y in range(1,10):
    for x in range(1,10):
        if y * x == n:
            flg = True
yes_no(flg)

Solution (Python):
N = int(input())
d = {i*j for i in range(1,10) for j in range(1,10)}
print('Yes' if N in d else 'No')

Solution (Python):
N = int(input())

mul_table = set()


for i in range(1, 10):
    for j in range(1, 10):
        mul_table.add(i * j)

if N in mul_table:
    print('Yes')
else:
    print('No')

Solution (Python):
n = int(input())
ok = False
for i in range(1,10):
  for j in range(1,10):
    if i*j == n:
      ok = True
print('Yes' if ok else 'No')

Solution (Python):
N = int(input())
num = range(1,10)
num_list = [ i*j   for i in num for j in num ]
if N in num_list:
    print('Yes')
else:
    print('No')

Solution (Python):
x = int(input())
ok = False
for i in range(1,10):
	for j in range(1,10):
		if i*j==x :
			ok=True
if ok :print("Yes")
else: print("No")

Solution (Python):
n = int(input())

L = set()
for i in range(1,10):
    for j in range(1,10):
        result = i*j
        L.add(result)
if n in L:
    print("Yes")
elif n not in L:
    print("No")

Solution (Python):
N = int(input())

result = 'No'

for i in range(1, 10):
    for j in range(1, 10):
        if i * j == N:
            result = 'Yes'

print(result)

Solution (Python):
N = int(input())
count = 0
for i in range(1,10):
    n = N / i
    if n.is_integer() and n <= 9:
        count +=1
if count >= 1:
    print("Yes")
else:
    print("No")

Solution (Python):
N=int(input())
for i in range(1,10):
  m=N/i
  if m.is_integer() and 0<m<10:
      print("Yes")
      exit()
print("No")

Solution (Python):
N=int(input())
for i in range(1,10):
  for j in range(1,10):
    if N/i==j:
      print("Yes")
      exit()
print("No")

Solution (Python):
S = int(input())
li = [1,2,3,4,5,6,7,8,9]
count = 0
for i in range(9):
    if S//(li[i]) <= 9 and S % li[i] == 0:
        print("Yes")
        count += 1
        break
if count != 1:
    print("No")

Solution (Python):
mul = [[i*j for j in range(1, 10)] for i in range(1, 10)]
mul = sum(mul, [])
mul = list(set(mul))

if int(input()) in mul:
  print('Yes')
else:
  print('No')

Solution (Python):
N = int(input())

for i in range(1, 10):
    if N%i == 0:
        if N/i <= 9:
            print('Yes')
            exit()

print('No')

Solution (Python):
n = int(input())
for i in range(1, 10):
    if n % i == 0 and n // i < 10:
        print('Yes')
        exit()
print('No')

Solution (Python):
n = int(input())
t = "No"
for i in range(1,10):
  for j in range(1,10):
    if i * j == n:
      t = "Yes"
print(t)

Solution (Python):
n = int(input())

kakezan = []
for i in range(1,10):
    for j in range(1,10):
        kakezan.append(i * j)

if n in kakezan:
    print('Yes')
    exit()

print('No')

Solution (Python):
n = int(input())

qq = []
for i in range(1,10):
  for j in range(1,10):
    if i*j not in qq:
      qq.append(i*j)

print('Yes') if n in qq else print('No')

Solution (Python):
n = int(input())
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            print("Yes")
            exit(0)
print("No")

Solution (Python):
N = int(input())
A = []
if 1 <= N <= 9:
    print("Yes")
else:
    for i in range(9):
        if int(N/(i+1)) == N/(i+1):
            A.append(N/(i+1))
    if min(A) <= 9:
        print("Yes")
    else:
        print("No")

Solution (Python):

import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

n = int(readline())
l = list()
for i in range(1,10):
    for j in range(1,10):
        l.append(i * j)
print('Yes' if n in l else 'No')

Solution (Python):

import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

n = int(readline())
s = set()
for i in range(1,10):
    for j in range(1,10):
        s.add(i * j)
print('Yes' if n in s else 'No')

Solution (Python):
n = int(input())

kuku = []

for i in range(1,10):
    for j in range(1,10):
        kuku.append(i*j)

if n in kuku:
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())
l = []
for i in range(1,10):
  for j in range(1,10):
    l.append(i*j)
if n in l:
  print("Yes")
else:
  print("No")

Solution (Python):
import sys
N = int(input())
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == N:
            print("Yes")
            sys.exit()
print("No")

Solution (Python):
N = int(input())

ok = False
for i in range(1, 10):
    is_dividable = N % i is 0
    is_less_9 = N / i <= 9
    if is_dividable and is_less_9:
        ok = True
        break

answer = 'Yes' if is_dividable else 'No'

print(answer)

Solution (Python):
N=int(input())
f=0
for i in range(1,10):
    if N%i==0:
        if N/i<10:
            f+=1
if f==0:
    print('No')
else:
    print('Yes')

Solution (Python):
n=int(input())
flag=True
for i in range(9):
    for j in range(9):
        if (i+1)*(j+1)==n:
            print("Yes")
            flag=False
            exit()
if flag:
    print("No")

Solution (Python):
n = int(input())
l =0

for i in range(1,10):
    for j in range(1,10):
        k = i*j
        if k == n:
            l += 1

if l > 0:
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())
numbers = []
for i in range(1, 10):
    for j in range(1, 10):
        number = i * j
        numbers.append(number)
if n in numbers:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

n=I()
count=0
anss=[]
for i in range(1,10):
    for j in range(1,10):
        anss.append(i*j)
for ans in anss:
    if ans==n:
        print("Yes")
        sys.exit()
    else:
        count+=1
if count==len(anss):
    print("No")

Solution (Python):
n = int(input())
a = False
for i in range(1,10):
    if n%i==0 and n//i<10:
        a = True
if a:
    print('Yes')
else:
    print('No')

Solution (Python):
n = int(input())
for i in range(1,10):
	for j in range(1,10):
		if n == i * j:
			print("Yes");exit()
print("No")

Solution (Python):
import sys
import os

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    N = ii()
    for n in range(1, 10):
        t = N / n
        if 1<=t<=9 and t.is_integer():
            print('Yes')
            exit()
    else:
        print('No')
        exit()


if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            print('Yes')
            exit()
else:print('No')

Solution (Python):
import sys
input = sys.stdin.readline
from itertools import *
from collections import *

INF = float('inf')


def main():
    N = int(input())
    kuku = set(x * y for x in range(1, 10) for y in range(1, 10))
    answer = 'Yes' if N in kuku else 'No'
    print(answer)


if __name__ == '__main__':
    main()

Solution (Python):
n=int(input())
for i in range(1,10):
    if n%i==0 and 1<=n/i<=9:
        print('Yes')
        exit()
print('No')

Solution (Python):
N = int(input())
T = "No"
for i in range(1,10):
  for j in range(1,10):
    if N == i*j:
      T = "Yes"
print(T)

Solution (Python):
a = int(input())
check = 0
for p in range(10):
    if check == 0:
        for q in range(10):
            ans = p * q
            if a == ans:
                print('Yes')
                check += 1
            elif ans == 81 and a is not 81:
                print('No')
                
            else:
                pass

Solution (Python):










"""def kiri(n,m):
  r_ = n / m
  if (r_ - (n // m)) > 0:
    return (n//m) + 1
  else:
    return (n//m)"""
  
def main():
  MATH = []
  for i in range(1,10):
    for j in range(1,10):
      MATH.append(i*j)
  n = int(input())
  if n in MATH:
    print('Yes')
  else:
    print('No')
if __name__ == '__main__':
  main()

Solution (Python):
n = int(input())
ok = False
for i in range(1,10):
    for j in range(1,10):
        if i*j ==n:
            ok = True
            break
        
if ok:print("Yes")
else:print("No")

Solution (Python):
n = int(input())
for i in range(1,10):
    for j in range(1,10):
        if i * j == n:
            print("Yes")
            exit()
print("No")

Solution (Python):
list=[]
for i in range(1,10):
   for j in range(1,10):
      list.append(i*j)
a=int(input())
if a in list:
  print('Yes')
else:
  print('No')

Solution (Python):
N=int(input())
ans="No"
for i in range(1,10):
  for j in range(1,10):
    if(N==i*j):
      ans="Yes"
      break

print(ans)

Solution (Python):
from itertools import product
nums = [1, 2, 3, 4 ,5, 6, 7, 8, 9]
nums_set = set(i*j for i, j in product(nums, repeat=2))
n = int(input())
if n in nums_set:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys
n=int(input())
for x in range(1,9+1):
    for y in range(1,9+1):
        if n==x*y:
            print("Yes")
            sys.exit()
else:        
    print("No")

Solution (Python):
N=int(input());i=1;A='No'
while i<=9:
    if N//i*i==N and N//i<=9:
        A='Yes'
        break
    i+=1
print(A)

Solution (Python):
N=int(input())
for x in range(1,10):
    for y in range (1,10):
        if x*y==N:
            print('Yes')
            exit()
else:
    print('No')

Solution (Python):
N=int(input())

def zent(N):
    for i in range(1,10):
        for j in range(1,10):
            if j*i==N:
                return print("Yes")
    return print("No")
zent(N)

Solution (Python):
N=int(input())

def zent(N):
    for i in range(1,10):
        for j in range(1,10):
            if j*i==N:
                return print("Yes")
    return print("No")
zent(N)

Solution (Python):
N=int(input())
for i in range(1,10):
  for j in range(1,10):
    if i*j==N:
      print('Yes')
      exit()
print('No')

Solution (Python):
N = int(input())

flag = False
for i in range(1, 10):
    for j in range(1, 10):
        if i*j == N:
            flag = True
            break

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

Solution (Python):
import sys
N=int(input())

for i in range(1,10):
  for j in range(1,10):
    if N == i*j:
      print('Yes')
      sys.exit()

print('No')

Solution (Python):
n = int(input())

flag = 'No'
for i in range(1,10):
    if n % i == 0:
        if n // i < 10:
            flag = 'Yes'
            break
        else:
            continue

print(flag)

Solution (Python):
n = int(input())
ans = "No"
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            ans = "Yes"

print(ans)

Solution (Python):
import sys
import os

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    N = ii()
    for i in range(1, 10):
        j = N / i
        if j.is_integer() and 1 <= j <= 9:
            print('Yes')
            exit()
    else:
        print('No')


if __name__ == '__main__':
    main()

Solution (Python):
import sys
import os

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    N = ii()
    for i in range(1, 10):
        for j in range(1, 10):
            if i * j == N:
                print('Yes')
                exit()
    else:
        print('No')


if __name__ == '__main__':
    main()

Solution (Python):
def eer():
    n=int(input())
    for i in range(1,10):
        for j in range(1,10):
            if i*j==n:
                return "Yes"
    return "No"
print(eer())

Solution (Python):
n = int(input())

num = [1, 2, 3, 4, 5, 6, 7, 8, 9]

ans = 0
for i in range(9):
    for j in range(9):
        if n%num[i] == 0 and n%num[i] == 0 and n//(num[i]) == num[j]:
            ans = 1
if ans == 1:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

n = int(readline())
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            print('Yes')
            exit()
print('No')

Solution (Python):
n = int(input())
for i in range(1,10):
    for j in range(1,10):
        if(n == i*j):
            print('Yes')
            exit()

print('No')

Solution (Python):
n=int(input())
for i in range(1,10):
    if(n%i==0 and n/i<=9):
        print("Yes")
        exit()
print("No")

Solution (Python):
N = int(input())

bool = False

for i in range(1, 10):
    q, mod = divmod(N, i)
    if mod == 0 and (1 <= q < 10):
        bool = True
        break

if bool:
    print('Yes')
else:
    print('No')

Solution (Python):

n = int(input())
flg = False
for i in range(1,10):
    amari = n % i
    sho = n // i
    if amari == 0 and 1 <= sho <= 9:
        flg = True
        break

if flg:
    print('Yes')
else:
    print('No')

Solution (Python):
import math
n=int(input())
m=math.floor(math.sqrt(n))
i=1
while i<=m:
  wk=n/i
  if math.floor(wk)==math.ceil(wk) and wk<10:
    print("Yes")
    exit()
  else:
    i+=1
next
print("No")

Solution (Python):
N = int(input())

y = 0
for i in range(1, 10):
    for j in range(1, 10):
        if N == i*j:
            y = 1
            break
    if y:
        break

if y:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

if __name__ == '__main__':
    s = int(input())

    for i in range(1,10):
        a = s % i
        b = s // i

        if a == 0 and b < 10:
            print("Yes")
            break
        if i ==9:
            print("No")
            break

Solution (Python):
n = int(input())

x = 0

for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            x += 1
            
if x != 0:
    print('Yes')

else:
    print('No')

Solution (Python):
N=int(input())

flag=0

for i in range(9):
  if N%(i+1) == 0 and N/(i+1) <=9:
    flag=1
    
if flag==1:
  print('Yes')
else:
  print('No')

Solution (Python):
N=int(input())
kk=set()
for i in range(1,10):
    for j in range(1,10):
        kk.add(i*j)
print("Yes" if N in kk else "No")

Solution (Python):
n = int(input())
for i in range(1,10):
    for j in range(1,10):
        if i * j == n:
            print('Yes')
            exit()
print('No')

Solution (Python):
n = int(input())
count = 0

for i in range(1,10):
    for j in range(1,10):
        if i * j == n:
            print('Yes')
            exit()
print('No')

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    n=INT()
    flg=0
    for i in range(1,10):
        if n%i==0:
            if 1<=n//i<=9:
                flg=1
    if flg==1:
        print('Yes')
    else:
        print('No')
if __name__ == '__main__':
    do()

Solution (Python):
n = int(input())
ans = 'No'
for i in range(1,10):
  for j in range(i,10):
    if i*j == n:
      ans = 'Yes'
print(ans)

Solution (Python):
n = int(input())
count = 0

for i in range(10):
    for j in range(10):
        if i*j == n:
            print('Yes')
            exit()
print('No')

Solution (Python):
import sys
N = int(input())

for i in range(1,10):
    a = N / i
    if(a <= 9 and N % i ==0):
        print("Yes")
        sys.exit()
print("No")

Solution (Python):
import sys
N = int(input())
for j in range(1,10):
  for i in range(1,10):
    if i*j==N:
      print("Yes")
      sys.exit()
print("No")

Solution (Python):
N=int(input())
ans = 0
for i in range(1,10):
  for j in range(1,10):
    if N == i * j:
      ans += 1
print('Yes' if ans > 0 else 'No')

Solution (Python):
x=int(input())
t=1

for i in range(1,10):
  for k in range(1,i+1):
    if k*i==x:
      print('Yes')
      t=0
      break
  if t==0:break
else:print('No')

Solution (Python):

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

Solution (Python):
import sys
import numpy as np

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

N = ir()
A = np.arange(1, 10)
B = A[:, None] * A[None, :]
bl = np.in1d(N, B)
print('Yes' if bl else 'No')

Solution (Python):
import sys
import numpy as np

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

N = ir()
A = np.arange(1, 10)
B = A[:, None] * A[None, :]
bl = np.any(B == N)
print('Yes' if bl else 'No')

Solution (Python):
n = int(input())
for i in range(1,10):
  for j in range(1,10):
    if i*j==n:
      print('Yes')
      exit()
print('No')

Solution (Python):
n = int(input())

for i in range(1,10):
    if n % i == 0 and n // i <= 9:
        print("Yes")
        exit()

print("No")

Solution (Python):
l = []
for i in range(1,10):
    for j in range(1,10):
        l.append(i*j)

if int(input()) in l:
    print('Yes')
else:
    print('No')

Solution (Python):
N = int(input())
flag = False

for i in range(1, 10):
    if N % i == 0 and N // i < 10:
        flag = True
        break

print("Yes" if flag else "No")

Solution (Python):
N=int(input())
for i in range(1,10):
    if N%i==0:
        A=i
if N/A<10:
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())
b = [i * j for i in range(1,10) for j in range(1,10)]
print("Yes" if n in b else "No")

Solution (Python):
a = int(input())
b = [i * j for i in range(1, 10) for j in range(1, 10)]
print("Yes" if a in b else "No")

Solution (Python):



N = int(input())


num_list = []
for i in range(1, 10):
    for j in range(1, 10):
        num_list.append(i * j)
num_list = list(set(num_list))


if N in num_list:
    print("Yes")
else:
    print("No")

Solution (Python):
import math
import copy
from copy import deepcopy
import sys
import fractions

from functools import reduce

import decimal
import heapq
import collections
import itertools
from operator import mul

sys.setrecursionlimit(100001)







def getInputInt():
    inputNum = int(input())
    return inputNum


def getInputListInt():
    outputData = []
    inputData = input().split()
    outputData = [int(n) for n in inputData]

    return outputData


def getSomeInputInt(n):
    outputDataList = []
    for i in range(n):
        inputData = int(input())
        outputDataList.append(inputData)

    return outputDataList


def getSomeInputListInt(n):
    inputDataList = []
    outputDataList = []
    for i in range(n):
        inputData = input().split()
        inputDataList = [int(n) for n in inputData]
        outputDataList.append(inputDataList)

    return outputDataList




n = int(input())

for i in range(1, 10, 1):
    for j in range(1, 10, 1):
        if i*j == n:
            print("Yes")
            exit(0)

print("No")

Solution (Python):
list=[]
for i in range(1,10):
  for j in range(1,10):
    list.append(i*j)

if int(input()) in list:
  print("Yes")
else:
  print("No")

Solution (Python):
n = int(input())

ans = 0
for i in range(1,10):
  for j in range(1,10):
    if i*j == n :
      ans += 1

if ans >= 1:
  print('Yes')

else:
  print('No')

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

Solution (Python):
n=int(input())
ans='No'
for i in range(1,10):
  if n//i<10 and n%i==0:
    ans='Yes'

print(ans)

Solution (Python):
import sys
import os
import math

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    N = ii()

    for i in range(1, 10):
        m = N / i
        if m.is_integer() and 1 <= m <= 9:
            print("Yes")
            break
    else:
        print("No")


if __name__ == '__main__':
    main()

Solution (Python):
N=int(input())
for i in range(1,10):
    m=N/i
    if m.is_integer() and 1<=m<=9:
        print("Yes")
        break
else:
    print("No")