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):
    m = n/i
    if n%i==0 and 1<=m<=9:
        print("Yes")
        break
else:
    print("No")

Solution (Python):
from itertools import product

N = int(input())

for a, b in product(range(1, 9 + 1), repeat=2):
    if N == a * b:
        print('Yes')
        break
else:
    print('No')

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

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

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

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

print("No")

Solution (Python):
from sys import exit

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):
    m=n/i
    if m.is_integer() and 1<=m<=9:
        print("Yes")
        break
else:
    print("No")

Solution (Python):
def judge(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 judge(N):
    print("Yes")
else:
    print("No")

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

for i in range(1,10):
    if 0 < (N/i) < 10 and (N/i).is_integer():
        FLG = True
        break

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

Solution (Python):
n=int(input())
k=0
for i in range(1,10):
  checklist=set()
  checklist.add(n//i)
  if checklist.issubset({1,2,3,4,5,6,7,8,9}) and n%i==0:
      k=k+1
if k!=0:
  print("Yes")
else:
  print("No")

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

Solution (Python):
import math
import copy
from queue import Queue
import heapq
import numpy as np

MOD = 5000000007

n = int(input())

















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

if(flag == 1):
    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")
        quit()
    else:
        continue
print("No")

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

for a in range(10):
  for b in range(10):
    if a*b == n:
      ans += 1

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

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())
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())
flg = False
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            print("Yes")
            flg = True
            break
        else:
            continue
    if flg == True:
        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())
A = []
for i in range(1,10,1):
    for j in range(i,10,1):
        A.append(i*j)

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

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

for i in range(9):
  a=i+1
  if n%a==0 and n//a>=1 and n//a<=9:
    print('Yes')
    break
else:
  print('No')

Solution (Python):
N = int(input())
s = list(range(1, 10))

for i in s:
    if N%i == 0 and int(N/i) in s:
        print('Yes')
        break
else:
    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
            break
    else:
        continue
print("Yes"if count==1 else"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")
  exit()
else:
  print("No")
  exit()

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

Solution (Python):
x=int(input())
n=9
a=[]
for ii in range(n):
  for jj in range(n):
    a.append((ii+1)*(jj+1))
a=list(set(a))
if x in a:
  print("Yes")
else:
  print("No")

Solution (Python):
x=int(input())
n=9
a=[]
for ii in range(n):
  for jj in range(n):
    a.append((ii+1)*(jj+1))
if x in a:
  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())

for b in range(1, 10):
    a = n//b

    if a*b == n:
        if a <= 9 and b <= 9:
            print("Yes")
            exit()
print("No")

Solution (Python):
import sys

n=int(input())
num=[]

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

print("No")

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

for i in range(1,10):
  if N/i==int(N/i):
    if N/i<=9:
      print("Yes")
      sys.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):
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(0)
print('No')

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

Solution (Python):
i = int(input())
ans = 0
for l in range(1,10):
	for j in range(1,10):
		if l * j == i:
			ans += 1
if ans > 0:
	print("Yes")
if ans == 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):
import math
import time
from collections import defaultdict, deque
from sys import stdin, stdout
from bisect import bisect_left, bisect_right
n=int(input())
poss=False
for i in range(1,10):
    for j in range(i,10):
        if(i*j==n):
            poss=True
            break
if(poss):
    print("Yes")
else:
    print("No")

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

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

i=1
j=1
while i<10:
    j=0
    while j<10:
        
        if j*i==N:
            print("Yes")
            quit()
        j+=1
    i+=1
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")
            quit()
print("No")

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

Solution (Python):

n = int(input())
ans = False
for a in range(1,10):
    for b in range(1,10):
        if n == a*b:
            ans=True
            break

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

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

Solution (Python):

N = int(input())


kuku = list(
    set(
        [
            m * n
            for m in range(1, 10, 1)
            for n in range(1, 10, 1)
        ]
    )
)

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 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 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(0)
print("No")

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

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

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
      
if ok:
  print("Yes")
else:
  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;
  else:
    continue;
  break
else:
  print("No")

Solution (Python):
n = int(input())
for i in range(1, 9+1):
    for j in range(1, 9+1):
        if i*j == n:
            print("Yes")
            exit(0)
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())
l = [(i+1)*(j+1) for i in range(9) for j in range(9)]
if n in l:
    print('Yes')
else:
    print('No')

Solution (Python):
N = int(input())
lst = []

for i in range(10):
    for j in range(10):
        lst.append(i*j)

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

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

Solution (Python):
N = int(input())
kuku =[]

for a in range(9):
  for b in range(9):
    c = (a+1)*(b+1)
    kuku.append(c)
if N in kuku:
  print('Yes')
else:
  print('No')

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

Solution (Python):
n=int(input())
for i in range(10):
    for s in range (10):
        result=i*s
        if n==result:
            print('Yes')
            exit()
        elif result<81:
            continue
        else:
            print('No')

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

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

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

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

Solution (Python):
x = input()
a = int(x)
counter = 0

for i in range(10):
  for j in range(10):
    if i*j == a:
      counter +=1

if counter != 0:
  print("Yes")
else:
  print("No")

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


func2(int(input()))

Solution (Python):
def func(N):
    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")

func(int(input()))

Solution (Python):
import sys, math
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input())
rl = lambda: list(map(int, input().split()))
mod = 10**9 + 7

N = ri()

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

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

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

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

r=0
for i in range(9,0,-1):
  if N%i==0:
    r=N//i
    if len(str(r))==1:
      print("Yes")
      exit()
    else:
      r=0
if r==0:
  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())
l = 0
for i in range(1,10):
    for j in range(1,10):
        if i * j == n:
            l += 1
            break
        if l != 0:
            break
            
if l == 0:
    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(10):
    for j in range(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):
    x.append(i*j)
    
if(n in x):
  print("Yes")
else:
  print("No")

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

is_find = False

if n > 81:
    print('No')
else:
    for i in range(9):
        for j in range(9):
            if (i+1)*(j+1) == n:
                is_find = True
                break
        if is_find:
            break
    if is_find:
        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):
N = int(input())

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

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

Solution (Python):

def main():
    n = int(input())
    for i in reversed(range(1,10)):
        if n % i == 0:
            if n / i >= 10:
                print('No')
            else:
                print('Yes')
            break


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

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

if int(a) in all_list:
    print('Yes',end='')
else:
    print('No',end='')

Solution (Python):
import fileinput

n = int(input())

a = False

for i in range(1, 10):
    for j in range (1, 10):
        if i * j == n:
            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):
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())
def cal(n):
    p = []
    for i in range(1,int(n**0.5)+1):
        if n%i == 0:
            p.append([i,n//i])
    return p
a = cal(n)
t = 1
for i in range(len(a)):
    if 1 <= a[i][0] <= 9 and 1 <= a[i][1] <= 9:
        t = 0
        print('Yes')
        break
if t == 1:
    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):
def main():
    N = int(input())
    for i in range(1,10):
        for j in range(1,10):
            if (i * j == N):
                print('Yes')
                return 0
    print('No')
    return 0
    
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")
            break
    else:
        continue
    break
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
            break
if ok:
    print('Yes')
else:
    print('No')

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

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

Solution (Python):
n=int(input())
f=0
if n>81:
    print("No")
if n<=81:
    for i in range(1,10):
        if n%i==0 and n//i<=9:
            f=1
    print("Yes" if f==1 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())

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

print(ans)

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 >= 1:
  print('Yes')
else:
  print('No')

Solution (Python):
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop
from itertools import permutations, accumulate, combinations, combinations_with_replacement
from math import sqrt, ceil, floor, factorial
from bisect import bisect_left, bisect_right
from copy import deepcopy
from operator import itemgetter
from functools import reduce


import sys
def I(): return int(input())
def Is(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def TI(): return tuple(map(int, input().split()))
def IR(n): return [I() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def TIR(n): return [TI() for _ in range(n)]
def S(): return input()
def Ss(): return input().split()
def LS(): return list(input())
def SR(n): return [S() for _ in range(n)]
def SsR(n): return [Ss() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
sys.setrecursionlimit(10**6)
MOD = 10**9+7
INF = float('inf')


n = I()
li = [a*b for a in range(1,10) for b in range(1, 10)]
if n in li:
    print("Yes")
else:
    print("No")

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

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

seisu = []

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



if N in seisu:
    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()
        else:
            pass
print("No")

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

q = 0

for i in range(10):
    for s in range(10):
        if i*s == n:
            q = 1
            print("Yes")
            break
    if q == 1:
        break
if q == 0:
    print("No")

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

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

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

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 sys

n = int(input())

for i in range(9):
  if(n / (i + 1) == n//(i + 1) and len(str(n // (i + 1))) == 1):
    print('Yes')
    sys.exit()

print('No')

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

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

if flag == True:
    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)
print("Yes" if n in list else "No")

Solution (Python):
N = int(input())
flag = False
for i in range(1, 10):
    for j in range(i, 10):
        if i * j == N:
            flag = True
    if flag:
        print('Yes')
        break
if not flag:
    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):
a = int(input())
if (a <= 10):
    print("Yes")
elif(a==12)or(a==14)or(a==15)or(a==16)or(a==18)or(a==20):
    print("Yes")
elif(a==21)or(a==24)or(a==25)or(a==27)or(a==30):
    print("Yes")
elif(a==32)or(a==35)or(a==36)or(a==40):
    print("Yes")
elif(a==40)or(a==42)or(a==45)or(a==49):
    print("Yes")
elif(a==54)or(a==56):
    print("Yes")
elif(a==63)or(a==64):
    print("Yes")
elif(a==72):
    print("Yes")
elif(a==81):
    print("Yes")
else:
    print("No")

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

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

if __name__ == '__main__':
    main()

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

Solution (Python):
from sys import exit

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())
flag=True
for i in range(1,10):
    if n%i==0:
        r=n/i
        if 1<=r<=9:
            flag=False
            print("Yes")
            break
if flag: print("No")

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

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

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

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


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

kuku = [0]*81
c = 0
for i in range(1,10):
    for j in range(1,10):
        kuku[c] = i*j
        c += 1

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

Solution (Python):
n = int(input())
for i in range(1,10):
  for p in range(1,10):
    if i*p == 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
            break

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

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

Solution (Python):

import sys

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

    for i1 in range(1, 10):
        for i2 in range(1,10):
            if n == i1 * i2:
                print('Yes')
                sys.exit()
    else:
        print('No')

if __name__ == '__main__':
    main()

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())
L=[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 L:
  print('Yes')
else:
  print('No')

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

flag=0

Ans_List=[]    
for i in range(1,10):
    if N%i==0:
        Ans_List.append(N//i)

for i in Ans_List:
    if refer_List.count(i)!=0:
        flag=1
        break
    
print("Yes" if flag==1 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'
      break
print(ans)

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

Solution (Python):
A = [a*b for a in range(10) for b in range(10)]
n = int(input())
if n in A:
  print('Yes')
else:
  print('No')

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

answer = "No"

for i in range(1, 10):
  should_break = False
  for j in range(1, 10):
    if(i * j == N):
      answer = "Yes"
      should_break = True
      break

  if(should_break):
    break

print(answer)

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

answer = "No"

for i in range(1, 10):
  should_break = False
  for j in range(1, 10):
    if(i * j == N):
      answer = "Yes"
      break

  if(should_break):
    break

print(answer)

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

answer = "No"

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

print(answer)

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

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

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

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()

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

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

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

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

numbers = []

for i in range(1,9+1):
    for j in range(1,9+1):
        numbers.append(i*j)

if N in numbers:
    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
            break

if ans == 1:
    print("Yes\n")
else :
    print("No\n")

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):
N=int(input())
for i in range(10):
    for j in range(10):
        if i*j==N:
            print("Yes")
            exit(0)
print("No")

Solution (Python):
n = int(input())
ok = False
for i in range(1,10):
    if n % i == 0:
        a = n // i
        if a < 10 :
            ok = True
            break
if ok == 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'
            break
print(ans)

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(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 len(str(N // i)) == 1:
    print("Yes")
    quit()

print("No")

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

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


def judge(n):
    for i in range(1, 10):
        for j in range(1, 10):
            if n == i * j:
                print("Yes")
                return

    print("No")


judge(n)

Solution (Python):
x=int(input())
flg=0
for i in range(2,10):
	if x%i==0 and x//i<10:
		flg=1
		break
if flg or x==1:
	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')
            quit()
else:
    print('No')

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

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

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

for i in range(1,10):
    if N % i == 0:
        ans = N // i
        if ans < 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())
List=[]
for i in range(1,10):
    for j in range(1,10):
        List.append(i*j)

for j in List:
    if j==n:
        print("Yes")
        exit()
print("No")

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