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):
from sys import stdin

a = int(stdin.readline().rstrip())


num = list(range(1,10))

for i in num[::-1]:
    if a/int(i) > 10:
        print('No')
        break
    else:
        if a%int(i)==0 and a//int(i) < 10:
            print('Yes')
            break
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())
if n in {a * b for a in range(1, 10) for b in range(1, 10)}:
    print("Yes")
else:
    print("No")

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

Solution (Python):
import sys

n = int(input())

for a in range(10):
    for b in range(10):
        if a*b == n:
            print("Yes")
            sys.exit(0)

        if a == 9 and b == 9:
            print("No")

Solution (Python):
n=int(input())
if n>81:
    print('No')
else:
    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())
ans = ('No')
for i in range(1,10):
    for j in range(1,10):
        if i * j == n:
            ans = ('Yes')
            break
print(ans)

Solution (Python):
N = int(input())
ans = 'No'

S = set()
for i in range(9):
    for j in range(9):
        S.add((i+1)*(j+1))

if N in S:
    ans = 'Yes'

print(ans)

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')
            break
print(ans)

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

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

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

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

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

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

Solution (Python):


N = int(input())
flag = 0


for i in range(10):
    for j in range(10):
        if(N == i*j):
         flag = 1
         break
            
if(flag==1):
    print("Yes")
else:
     print("No")

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

Solution (Python):
A = set()
for i in range(1,10):
  for j in range(1,10):
    A.add(i*j)
print(['No','Yes'][int(input()) in A])

Solution (Python):
kuku= [1, 2, 3, 4, 5, 6, 7, 8, 9]
m=[]
for a in kuku:
    for b in kuku:
        x=a*b
        m.append(x)
if int(input()) in m:
    print("Yes")
else:
    print("No")

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

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

ans = "No"

for i in range(9):
    for j in range(9):
        if (i + 1) * (j + 1) == N:
            ans = "Yes"
            break
    else:
        continue
    break

print(ans)

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

res = 'No'
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == N:
            res = 'Yes'
            break
    else:
        continue
    break

print(res)

Solution (Python):
n=float(input())
ans = 'No'
for a in range(1,10):
    b = n/a
    if float.is_integer(b) and b<10:
        ans = 'Yes'
print(ans)

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

Solution (Python):
integer = [list(map(int, s.split())) for s in open(0)][0][0]
dlist = [divmod(integer, i) for i in range(1, 10)]
found = 0
for d in dlist:
    if d[0] <= 9 and d[1] ==0:
        print("Yes")
        found += 1
        break 
if found == 0:
    print("No")

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):
n = int(input())

s = set()
for i in range(10):
    for k in range(10):
        s.add(i*k)

if n in s:
    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())


ans = 0

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

if ans==0:
    print("No")
else:
    print("Yes")

Solution (Python):
n=int(input())
i=1
flag=0
while(i<10):
    if((n%i)==0 and (n/i)<10):
        print("Yes")
        flag=1
        break
    i+=1
if(flag==0):
    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"
print(ans)

Solution (Python):
N_list = []

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

N = int(input())
if N in N_list:
    print("Yes")
else :
    print("No")

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

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

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

Solution (Python):
n=int(input())
i=0
flg=0
while i<10:
	j=1
	while j<10:
		if i*j==n:
			flg=1
			break
		j+=1
	i+=1

if flg==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 i*j==N:
      ans='Yes'
print(ans)

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):
    for j in range(1, 10):
        if i * j == n:
            print("Yes")
            exit()
print("No")

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):
n = int(input())
ans = 'No'
for i in range(1,10):
    for j in range(1,10):
        if n == i*j:
            ans = 'Yes'
print(ans)

Solution (Python):
num = int(input())
print("Yes" if any(num // i < 10 and not num % i for i in range(1, 10)) else "No")

Solution (Python):
import sys
import itertools
import bisect

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  


n = ni()
flag = 0
for i in range(1, 10):
    for j in range(1, 10):
        if n == i * j:
            flag = 1
if flag:
    print('Yes')
else:
    print('No')

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


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

Solution (Python):
A = int(input())
count = 0
for i in range(1,10):
	if A%i == 0:
		B = A/i
		if B<10 and B > 0:
			print("Yes")
			count += 1
			break;

if count == 0:
	print("No")

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

flag=1

for i in range(1,10):
    for j in range(1,10):
        if i*j==N:
            flag=0
            print("Yes")
            break
    if(flag==0):
        break

if(flag):
    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())

arr = [i for i in range(1, 10)]

for i in range(1, 10):
    if N/i in arr:
        print('Yes')
        break
else:
    print('No')

Solution (Python):
import sys

[nstr] = sys.stdin.readline().split(" ")
n = int(nstr)

result = float(0)
for i in range(1, 10):
    result = n / i
    if result.is_integer() and result < 10:
        print("Yes")
        exit()

print("No")

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

for i in range(1,10):
    if  N / i in [1, 2, 3, 4, 5, 6, 7, 8, 9]:
        print("Yes")
        exit()
print("No")

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

Solution (Python):
N=int(input())
a=[]
for i in range(1,10):
  for k in range(1,10):
    a.append(i*k)
if N in a:
  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
print("Yes" if Flag else "No")

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

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

if 1<=N<=9:
  print("Yes")
elif (N%2==0) and N<=18:
  print("Yes")
elif (N%3==0) and N<=27:
  print("Yes")
elif (N%4==0) and N<=36:
  print("Yes")
elif (N%5==0) and N<=45:
  print("Yes")
elif (N%6==0) and N<=54:
  print("Yes")
elif (N%7==0) and N<=63:
  print("Yes")
elif (N%8==0) and N<=72:
  print("Yes")
elif (N%9==0) and N<=81:
  print("Yes")
else:
  print("No")

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

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

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

if N <= 9:
    count+=1


for i in range(2, 10):
        if N % i == 0:
            j = N / i
            if 1 <= j <= 9:
                count += 1

            else:
                count = count

        else:
            count = count

if count == 0:
    print("No")
else:
    print("Yes")

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

n = int(input())

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

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

check = False
for i in range(1,10):
    for j in range(1,10):
        if n == i * j:
            check = True
            break
if check:
    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 i*j==N:
            ans="Yes"
print(ans)

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

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

def main():
    n = int(input())
    for i in range(1, 10):
        if n % i == 0 and n // i < 10:
            print('Yes')
            return None
    print('No')
if __name__ == '__main__':
    main()

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(N: int):
    l = set([])
    
    for i in range(1, 10):
        for j in range(1, 10):
            l.add(i*j)
    
    print(YES if N in l else NO)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  
    solve(N)

if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
num_list = [1,2,3,4,5,6,7,8,9,10,12,14,16,18,15,21,24,27,20,28,32,36,25,30,35,40,45,36,42,48,54,49,56,63,64,72,81]
if n in num_list:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
N = int(input())
ans = "No"
for p in range(1, 10):
    q, r = divmod(N, p)
    if q in list(range(1, 10)) and r == 0:
        ans = "Yes"
        break
print(ans)

Solution (Python):


import sys

N = int(input())

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

print('No')

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

cmd = 0

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

if cmd == 0:
    print("No")
elif cmd == 1:
    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())
list = []
append = list.append
for a in range(1,10):
    for b in range(1,10):
        append(a*b)

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

Solution (Python):
n = int(input())
flag = False
for x in range(1,10):
  if(n%x==0 and 1 <= n//x <= 9):
    flag = True
if flag:
  print("Yes")
else:
  print("No")

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

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

Solution (Python):
import itertools
n = int(input())
a = b = list(range(1,10))
flg = False
for aa,bb in itertools.product(a,b):
  if aa * bb == n:
    flg =True
    break
print("Yes" if flg else "No")

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

Solution (Python):
N = int(input())
box = [1,2,3,4,5,6,7,8,9,10, 12, 14, 16,18,15,21,24,27,20,28,32,36,25,30,35,40,45,42,48,54,49,56,63,64,72,81]
if N in box:
  print('Yes')
else:
  print('No')

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

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

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

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

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

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

if ans:
    print("Yes")
else:
    print("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())

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

Solution (Python):
import sys

N = int(input())

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

print('No')

Solution (Python):
nums = [1,2,3,4,5,6,7,8,9]
N = int(input())

flg = 0
for a in nums:
    if N/a in nums:
        print('Yes')
        flg = 1
        break
if flg==0: print('No')

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

res = "No"

if (N <= 81):
    for i in range(1,10):
        if (N % i == 0 and (N // i) < 10):
            res = "Yes"
            break

print(res)

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())
for i in range(9):
    if N%(9-i)==0:
        N=N//(9-i)
        if N<=9:
            print('Yes')
            break
        else:
          print('No')
          break
else:
    print('No')

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

a = [float(x) for x in range(1, 10)]
for i in range(1,10):
    if N / i in a:
        print('Yes')
        exit()
print('No')

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

ans = 'No'  

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

print(ans)

Solution (Python):
N = int(input())
if N > 81:
  print("No")
elif N <= 9:
  print("Yes")
else:
  found = False
  for i in range(2, 10):
    if N % i == 0:
      X = N // i
      if X <= 9:
        print("Yes")
        found = True
        break
  if not found:
    print("No")

Solution (Python):
inp = int(input())
flag = "No"
for i in range(1,10):
  if (str(inp/i)).split(".")[1]=="0":
    a = str((inp/i)).split(".")[0]
    
    if(len(a)==1):
      for j in range(1,10): 
        if (str(int(a)/j)).split(".")[1]=="0":
          b = str((int(a)/j)).split(".")[0]
          if (b=="1"):
            flag="Yes"
            break  
print(flag)

Solution (Python):
n=int(input())
ans=[0]*100
if n>81:
  print('No')
else:
  for i in range(1,10):
    for j in range(i,10):
      ans[(i-1)*10+(j-1)]=i*j
  if ans.count(n)==0:
    print('No')
  else:
    print('Yes')

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

if n > 81:
  print("No")
else:
  for i in range(1,10):
    if n % i == 0:
      if n//i < 10:
        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())
flag = 0
for i in range(1,10):
    for j in range(1,10):
        if N == i*j:
            flag = 1
if flag == 0:
    print("No")
else:
    print("Yes")

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

Solution (Python):
n=int(input())
for i in range(1,10):
  if n/i == n//i and n//i <= 9:
    print('Yes')
    break
else:
  print('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())

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())

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

Solution (Python):


N = int(input())

ans = "No"

if N == 1:
   ans = "Yes"

for i in range(2,10):
   
   if N % i == 0:
      waru = N / i
      
      if 9 >= waru:
         ans = "Yes"

print(ans)

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

Solution (Python):

print('Yes' if int(input()) in set(i*j for i in range(1,10) for j in range(1,10)) else 'No')

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

Solution (Python):
n = int(input().strip())
kuku = {a * b: True for a in range(1, 10) for b in range(1, 10)}
if kuku.get(n):
  print('Yes')
else:
  print('No')

Solution (Python):


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

if flag:
    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
if flag:
    print("Yes")
else:
    print("No")

Solution (Python):
N = int(input())
flag = False
if(N > 81):
    print("No")
else:
    for i in range(1,10):
        if (N % i == 0) and (N // i < 10):
            flag = True
            break
    if flag :
        print("Yes")
    else:
        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())
for i in range(1,10):
  if N % i == 0 and 1 <= N // i <= 9:
    print("Yes")
    break
  elif i == 9:
    print("No")
    break

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):
n = int(input())
list = [9,8,7,6,5,4,3,2,1]
if n == 1:
    print("Yes")
    exit()

ans = ""
for item in list:
    if (n % item) == 0 and (n / item) in list:
        ans = "Yes"
        break
    else:
        ans = "No"

print(ans)

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

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

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

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

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

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

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

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(N: int):
    print(YES if N in list(set([x*y for x in range(1, 10) for y in range(1, 10)])) else NO)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  
    solve(N)

if __name__ == '__main__':
    main()

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

Solution (Python):

from collections import defaultdict,deque
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import sys, random, itertools, math
sys.setrecursionlimit(10**5)
input = sys.stdin.readline
sqrt = math.sqrt
def LI(): return list(map(int, input().split()))
def LF(): return list(map(float, input().split()))
def LI_(): return list(map(lambda x: int(x)-1, input().split()))
def II(): return int(input())
def IF(): return float(input())
def LS(): return list(map(list, input().split()))
def S(): return list(input().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')


def A():
    a, b = LI()
    def c(x):
        return 1 <= x <= 9
    if c(a) and c(b):
        print(a * b)
        return
    print(0)
    return


def B():
    a = set()
    for i in range(10):
        for k in range(10):
            a.add(i * k)
    x = II()
    if x in a:
        print("Yes")
    else:
        print("No")
    return


def C():
    n = II()
    factlize = []
    ans = inf
    for i in range(1, int(sqrt(n)) + 1):
        if n % i == 0:
            ans = min(ans, n // i + i - 2)
    print(ans)

    return


def D():
    return


def E():
    def solve(m):
        a1 = a[::-1]
        f1 = f[::1]
        res = 0
        for i in range(n):
            if a1[i] * f1[i] <= m:
                continue
            k = m // f1[i]
            res += a1[i] - k
            if res > K:
                return False
        return True

    n, K = LI()
    a = LI()
    a.sort()
    f = LI()
    f.sort()
    ok = max(a) * max(f)
    ng = -1
    while ok - ng > 1:
        mid = (ok + ng) // 2
        if solve(mid):
            ok = mid
        else:
            ng = mid
    print(ok)
    return


def F():
    return



if __name__ == '__main__':
    B()

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())

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

print("No")

Solution (Python):
import sys

N = int(input())

for x in range(1, 10):
    for y in range(1, 10):
        if(N==x*y):
            print("Yes")
            sys.exit()

print("No")

Solution (Python):
data = list(map(int,input().split()))
N = data[0]
flag = 0
for i in range(1,10,1):
  div = N / i
  pl = N % i
  if 1<=div<=9 and pl==0:
    flag = 1
    break
if flag == 0:
  print("No")
else:
  print("Yes")

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

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

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

for a in range(10):
    for b in range(10):
        if a * b == 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())

ans = "No"
for i in range(1,10):
    if (N/i)%1 == 0 and (N/i)<10:
        ans = "Yes"
        break

print(ans)

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

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

x=0
for i in range(1,10):
  if n%i==0 and n//i <= 9:
    x=1

if x==1:
  print('Yes')

else:
  print('No')

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

x=0
for i in range(1,10):
  for ii in range(1,10):
    if n==i*ii:
      x=1

if x==1:
  print('Yes')

else:
  print('No')

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

if n in [1,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21,24,25,27,28,30,32,35,36,40,42,45,48,49,54,56,63,64,72,81]:
  print('Yes')
else:
  print('No')

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

if n > 81:
  print('No')
else:
  for i in reversed(range(1,10)):
    if n % i == 0 and n//i <= 9:
      print('Yes')
      sys.exit(0)
    
  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())
flag=0
for A in range(1,10):
  for B in range(1,10):
    if N==A*B:
      flag=1
      break


if flag==1:
  print('Yes')
else:
  print('No')

Solution (Python):
N=int(input())
flag=0
for A in range(1,10):
  for B in range(1,10):
    if N==A*B:
      flag=1
      break

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

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

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

flag = 0

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

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

Solution (Python):
import sys
n = int(input())
for i in range(9,0,-1):
  for j in range(9,0,-1):
    if i*j == n:
      print('Yes')
      sys.exit()
print('No')

Solution (Python):
a=input()
a=int(a)
li1=[2,3,50,60,70,80,22,33,44,55,66,77,26,39,52,65,78,34,51,68,38,57,46,69,58,62,74,]
for i in range(4,82):
    b=0
    for k in range(2,i):
        if i%k==0:
            b=1
    if b==0:
        li1.append(i)
li2=[h for h in range(1,82)]
li3=list(set(li2)-set(li1))
li4=[2,3,5,7,9]
li5=li3+li4
if a in li5:
    print("Yes")
else:
    print("No")

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

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

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

flag = 0

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

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

Solution (Python):
N = int(input())
y = 0
for a in range(1,10):
    for b in range(1,10) :
        if N == a*b :
            print('Yes')
            y += 1
            break
    if y != 0 :
        break
if y == 0 :
    print('No')

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

can = False
for i in range(1, 10):
  for j in range(1, 10):
    if i * j == a:
      can = True
      
if can:
  print("Yes")
else:
  print("No")

Solution (Python):
usrInput = input()
divisor = []
flag = []
finalFlag = False

for kuku in range(9):
    currentDivisor = kuku+1
    if int(usrInput) % currentDivisor == 0:
        divisor.append(currentDivisor)

for x in range(len(divisor)):
    anotherDivisor = int(usrInput) / divisor[x]
    if float.is_integer(anotherDivisor) == True and anotherDivisor <= 9 and anotherDivisor > 0 and int(divisor[x]) > 0:
        flag.append(True)
    else:
        flag.append(False)

for n in range(len(divisor)):
    if bool(flag[n]) == True:
        finalFlag = True

if finalFlag == True:
    print("Yes")
else:
    print("No")

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

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

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

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

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

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

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

if N > 81:
  print('No')
  exit()

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

print('No')

Solution (Python):
N = int(input())
is81 = False
for i in range(1, 10):
    for j in range(1, 10):
        if i*j == N:
            is81 = True

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

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

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

if N>81:
    print("No") 
else:
    for A in range(1, 10):
        if N % A == 0:
            B = N//A
            if B <= 9:
                print("Yes")
                sys.exit()
    print("No")

Solution (Python):
n=input()
n=int(n)
a=0
b=0

for i in range(10):
    for j in range(10):
        if(n==i*j):
            a=i
            b=j
            break
            
if(a==0 or b==0):
    print("No")
else:
    print("Yes")

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

Solution (Python):
n = int(input())
a = []
for i in range(9):
    for j in range(9):
        a.append((i+1) * (j+1))
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 0<=n//i<=9:
            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")