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 a in range(1, 10):
    for b in range(1, 10):
        if a * b == N:
            print('Yes')
            exit()
print('No')

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

import sys

for i in range(1,10):
    if N%i==0 and N//i < 10:
        print("Yes")
        sys.exit()
    
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(i,10):
        if N == i*j:
            print ("Yes")
            break
    else:
        continue
    break
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):




def main():
    N = int(input())
    result = 'No'
    for i in range(1, 10):
        if (N / i).is_integer()and (N / i) < 10:
            result = 'Yes'
            break
    print(result)


if __name__ == "__main__":
    main()

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

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

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

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

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

func(N)

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

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

for a in range(1, 10):

    for b in range(1, 10):
        if n == a*b:
            print("Yes")
            exit()
else:
    print("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):
import sys
n = int(input())
for i in range(1,10):
    for j in range(i,10):
        if n == i*j:
            print("Yes")
            sys.exit()
print("No")

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

Solution (Python):



def main():
  n = int(input())
  for i in range(1, 10):
    if n % i != 0:
      continue
    for j in range(1, 10):
      if i*j == n:
        print('Yes')
        return 
  print('No')

if __name__=='__main__':
  main()

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

Solution (Python):
N=int(input())
count=0
for i in range(9):
  if N%(i+1)==0:
    ans=N//(i+1)
    if ans<10 and ans>0:
      print("Yes")
      break
    else :
      count+=1
  else :
    count+=1
if count==9:
  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(9):
    if N%(i+1)==0 and N/(i+1)<=9:
        print('Yes')
        break
else:
    print('No')

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

for i in (1,2,3,4,5,6,7,8,9):
  for j in (1,2,3,4,5,6,7,8,9):
    if i*j==n:
      print("Yes")
      exit()
print("No")

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

Solution (Python):
import math 
N = int(input())
rootN = math.ceil(math.sqrt(N))
yakusuu = []
for i in range(1,rootN+1):
    if N % i == 0:
        yakusuu.append(i)

hitoketaFLG = 0
for j in yakusuu:
    if len(str(int(N / j))) == 1:
        hitoketaFLG = 1
print('Yes' if hitoketaFLG == 1 else 'No')

Solution (Python):
def main(n):
    for i in range(1,10):
        x,y = divmod(n, i)
        if y == 0 and (0 < x and x < 10):
            return True
    return False

n = int(input())
print("Yes" if main(n) else "No")

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


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

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

print(ans)

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

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

Solution (Python):
import sys

n = int(input())

for i in range(1,10):
  x = n/i
  y = n%i

  if y != 0:
      continue

  if 1<=x<=9:
      print("Yes")
      sys.exit()

print("No")

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

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

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

Solution (Python):
def generate_table():
    table = []
    for i in range(1, 10):
        for j in range(1, 10):
            table += [i*j]
    return table
t = generate_table()
a = int(input())
if a in t:
    print('Yes')
else:
    print('No')

Solution (Python):
n = int(input())
judge = []
for i in range(9):
    for j in range(9):
        judge.append((i+1)*(j+1))
if n in judge:
    print('Yes')
else:
    print('No')

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

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

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

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

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

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

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

if n in mul:
    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):
N = int(input())
ans = 'No'

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

print(ans)

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

Solution (Python):
N = int(input())
M = [x*y for y in range(1,10) for x in range(1,10)]

if N in M:
    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]

y = []

for i in A:
    for j in B:
        if i*j == N:
            y.append('yes')
if y == []:
    print('No')     
else:
    print('Yes')

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def IS(): return sys.stdin.readline()[:-1]
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LII(rows_number): return [II() for _ in range(rows_number)]
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]

def main():
	N = II()
	l = [False]*101
	for i in range(1,10):
		for j in range(1,10):
			l[i*j] = True
	if(l[N]):print("Yes")
	else:print('No')



main()

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

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

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

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

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

for i in range(1,10):
    if n % i==0 and n//i < 10:
        num.append(i)
if len(num) > 0:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

N = INT()

def is_integer_num(n):
    if isinstance(n, int):
        return True
    if isinstance(n, float):
        return n.is_integer()
    return False

for i in reversed(range(1, 10)):
 	if is_integer_num(N/i) and N/i < 10:
 		print("Yes")
 		exit()

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

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

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

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

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

Solution (Python):
n = float(input())
print('Yes' if any([n/i in range(1, 10) and (n/i).is_integer() for i in range(1, 10)]) else 'No')

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

for i in range(1, 10)[::-1]:
    if N%i==0:
        break

print("Yes" if 1<=i<=9 and 1<=N//i<=9 else "No")

Solution (Python):
import numpy as np
n = int(input())
a = np.array(range(9)) + 1
all = np.outer(a, a)
if np.any(all == n):
  print("Yes")
else:
  print("No")

Solution (Python):
s = {x*y for x in range(1, 10) for y in range(1, 10)}

print("Yes" if int(input()) in s else "No")

Solution (Python):
N = int(input())
for i in range(1, 10):
    if N%i==0 and N//i<10:
        print("Yes")
        exit(0)
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())
a=[]
for i in range(1,10):
    for j in range(1,i+1):
        a.append(i*j)
if n in a:
  print("Yes")
else:
  print("No")

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

Solution (Python):
import sys
n=int(input())
for j in range(2):
    for i in range(1,10):
        if n%(10-i)==0:
            n=n/(10-i)
            break
if n==1:
    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 N == i*j:
            ans = 1
if ans == 1:
    print("Yes")
else:
    print("No")

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

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

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

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

Solution (Python):
import sys
input=sys.stdin.readline
n=int(input())
L=[]
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):
n = int(input())

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

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

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

print("No")

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

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
from collections import deque

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

DR = [1, -1, 0, 0]
DC = [0, 0, 1, -1]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
     
def main():
    N = I()
    for i in range(1, 10):
        a, b = i, N//i
        if N % i != 0:
            continue
        if b >= 10:
            continue
        print('Yes')
        return
    print('No')
    

main()

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

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

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

Solution (Python):
a = int(input())
flg = False
for i in range(10):
    for j in range(10):
        if(i*j == a):
           flg = True

if(flg):
    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())
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
row = sys.stdin.readline


def read_int(row):
    return int(row().rstrip())

N = read_int(row)
n_set = set([i * j for i in range(1,10) for j in range(1,10)])
print("Yes" if N in n_set else "No")

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

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

Solution (Python):
N = int(input())
num = [1, 2, 3, 4, 5, 6, 7, 8, 9]
x = 0
for i in range(9):
  if N/(9-i) in num:
    x += 1
  else:
    x += 0
    
if x!= 0:
  print("Yes")
else:
  print("No")

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

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

Solution (Python):
N = int(input())
a = [int(i) for i in range(1,10)]
t = 0
for i in range(9):
  b = int(N/a[i])
  if N % a[i] == 0 and 0<b<10:
    t += 1
if t > 0:
  print("Yes")
else:
  print("No")

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

Solution (Python):
n = int(input())
f=True
i=1
while(f and i<=9):
  g=n/i-int(n/i)==0
  if g and n/i<=9:
    f=False
  else:
    i+=1
print("Yes" if not f else "No")

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


for i in reversed(range(1,10)):
    if n % int(i) == 0:
        a = i
        n = int(n/a)
        break

if len(str(a)) == 1 and len(str(n)) == 1:
    print('Yes')
else:
    print('No')

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

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")
            break
    else:
        continue
    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==i*j:
            ans="Yes"
print(ans)

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

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

    print('No')
main()

Solution (Python):

N = int(input())

ans = 'No'
for x in range(1,10):
  for y in range(1,10):
    if N == x*y:
      ans = 'Yes'

print(ans)

Solution (Python):
import sys

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

    solve(N)

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

 
if __name__ == "__main__":
    propare()

Solution (Python):
N = int(input())
is_ok = False
for p in range(1, 10):
    for q in range(1, 10):
        if p * q == N:
            is_ok = True
            break
    if is_ok:
        break

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

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


is_ok = False
for num in range(1, 10):
    if N % num == 0 and 1 <= N / num <= 9:
        is_ok = True
        break
if is_ok:
    print('Yes')
else:
    print('No')

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

for i in range(1, 10):
  m = n / i
  if len(str(m)) == 3 and str(m)[1:3] == ".0":
    print("Yes")
    break
else:
  print("No")

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

Solution (Python):


n = int(input())
kuku = [i*j for i in range(10) for j in range(10)]
if n in kuku:
    print("Yes")
else:
    print("No")

Solution (Python):

n = int(input())
status = 0

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

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

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

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

Solution (Python):
def is_99(n):
    for i in range(1, 10):
        for j in range(1, 10):
            if i*j == n:
                return True
    return False


n = int(input())
if is_99(n):
    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 i*j==n:
            flag=True
            break
    if flag:
        break

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

Solution (Python):
N = int(input())
flag = 0
for i in range(1,10):
  if(N%i == 0 and N/i >=1 and N/i <=9):
    flag = 1
    break
if(flag == 1):
  print('Yes')
else:
  print('No')

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

Solution (Python):




n = int(input())

ans = "No"
for i in range(1, 10):
    for j in range(1, 10):
        wk = i * j
        if wk == n:
            ans = "Yes"
            break


print(ans)

Solution (Python):
c=[]
for i in range(1,10):
  for j in range(1,10):
    c.append(i*j)
n=int(input())
if n in c:
  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 i in range(1, 10):
  if ( (N / i) % 1 ) == 0 and 1 <= (N / i) <= 9:
    ans = "Yes"
    break

print(ans)

Solution (Python):
n=int(input())
for i in range(9):
    a,b=divmod(n,9-i)
    if a<=9 and b==0:
        print("Yes")
        break
else:
    print("No")

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

Solution (Python):
import itertools
N=int(input())
for i,j in itertools.product(range(1,10),repeat=2):
  if i*j==N:
    print('Yes')
    break
else:
   print('No')

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

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

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

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

Solution (Python):
n=int(input())
if n<10:
    print('Yes')
else:

    k=0
    for i in range(9,0,-1):
            if n%i==0:
                n=n//i
                if n>9:
                    k+=1
                    break
    if k>0:
            print('No')
    else:
            print('Yes')

Solution (Python):
N = int(input())
not_found = True
for i in range(1, 10):
    if N % i == 0 and (N/i) >= 1 and (N/i) <= 9:
        not_found = False
        print("Yes")
        break

if not_found:
    print("No")

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

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

def getans(n):
    flag = False
    for i in range(1,10):
        if (n % i)  == 0 and n/i <= 9.0:
            flag = True
            return(flag)
    return(flag)

if getans(n):
    print('Yes')
else:
    print('No')

Solution (Python):
N = int(input())
box = [[i * j for i in range(1, 10)] for j in range(1, 10)]
for i in range(9):
    if N in box[i]:
        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(0)
print("No")

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

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

print("Yes" if N in ls else "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(9,0,-1):
  tmp = n/i 
  if tmp > 9:
    print("No")
    exit(0)
  if tmp.is_integer():
    print("Yes")
    exit(0)

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

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

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

for i in range(9):
    div = i+1
    ans = N//div
    
    if (N%div == 0 and ans <= 9):
        print('Yes')
        i = -1
        break
if (i != -1):
    print('No')

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

possible = False
for x in range(1, 10):
    for y in range(1, 10):
        if x * y == n:
            possible = True
            break

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

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

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

Solution (Python):
N = int(input())
cnt = 1
while cnt <= 9:
    if N%cnt == 0 and 1 <= N/cnt <= 9:
            print('Yes')
            break
    else:
        cnt += 1
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 > 0:
    print("Yes")
else:
    print("No")

Solution (Python):

N=int(input())
flag=0
for i in range(1,10):
    if (N/i).is_integer() and (N/i)<=9:
        flag=1
        
    else:
        temp=0

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

Solution (Python):
n = int(input())
def aaa():
    for a in range(1,10):
        for b in range(1,10):
            if n == a * b:
                return 'ok'
m = aaa()

if m == '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):
L = []
for i in range(1,10):
    for j in range(1,10):
        L.append(i*j)
        
A=int(input())
if A in L:
    print('Yes')
else:
    print('No')

Solution (Python):

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

ABC144B()

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

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

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

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

print("Yes" if n in k else "No");

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

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

s = 0

for i in range(1, 10):
  for j in range(i, 10):
    s = i*j
    if s == a:
      break
    if s == 81:
      print("No")
  if s == a:
      print("Yes")
      break

Solution (Python):
N = int(input())
is_matched = False
res = ""

for i in range(1, 10):
    for j in range(1, 10):
        if N == i * j:
            is_matched = True
            res = "Yes"
            break
    if is_matched:
        break
    elif i == j == 9:
        res = "No"
print(res)

Solution (Python):
from itertools import product
N = int(input())
print("Yes" if N in {a*b for a,b in product(range(1, 10), range(1, 10))} else "No")

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

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

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

Solution (Python):
N = int(input())
L = [i*j for i in range(1,10) for j in range(1,10)]
if N in L:
  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')
      break
  else:
    continue
  break
else:
  print('No')

Solution (Python):
from itertools import product
print('Yes' if int(input()) in [i * j for i, j in product(range(1, 10), repeat=2)] else 'No')

Solution (Python):
N = int(input())
check = False
for i in range(1,10):
  if N%i==0 and N//i <=9 and N//i >=1:
    check = True
if(check):
  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 itertools
N = int(input())

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

for i,j in itertools.product(range(1,10),range(1,10)):
  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):
N = int(input())
count = 0
for i in range(1,10):
    for j in range(1,10):
        if i*j == N:
            count = 1
if count > 0:
    print('Yes')
else:
    print('No')

Solution (Python):
N = int(input())
ans = ''
if N > 81 or N < 1:
    ans = 'No'
else:
    a = [i for i in range(1,10)]
    for i in a:
        q, mod = divmod(N, i)
        if q < 10 and mod == 0:
            ans = 'Yes'
            break
if ans == 'No' or ans == '':
    print('No')
else:
    print('Yes')

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

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

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

    print('No')

if __name__ == '__main__':
    main()

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

res=set()
for i in range(1, 10):
  for j in range(1, 10):
    res.add(i * j)
if n in res:
  print("Yes")
else:
  print("No")

Solution (Python):
numbers = set()
for i in range(10):
  for j in range(10):
    numbers.add(i * j)

def solve():
  n = int(input())
  
  return 'Yes' if n in numbers else 'No'

print(solve())

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

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

print("Yes" if N in kuku else "No")

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

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

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

for i in range(1,10):
  for j in range(1,10):
    if i * j == a:
      flag = 0

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