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())
check = 0
for i in range(1, n // 2 + 1):
    if n % i == 0:
        if (n / i <= 9) and (i <= 9):
            check = 1
if n == 1:
    check = 1
if check == 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')
            exit()
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
if flag:
    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:
    	print("Yes")
    	flag=1
  if flag==1: break
else:
    print("No")

Solution (Python):

N=int(raw_input())

M = set([0, 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])

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

Solution (Python):
import sys
import math

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

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

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

Solution (Python):


def main():
    N  = int(input())
    if N > 81:
        print("No")
        exit()
    for i in range(1,10,1):
        if N % i ==0 and N // i < 10:
            print("Yes")
            exit()
    print("No")

        
if __name__ == '__main__':
    main()

Solution (Python):
import sys
import math
import os

input = sys.stdin.readline

n = int(input())

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

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

Solution (Python):
import sys

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

N = int(input())

if N in qq:
  print('Yes')
  sys.exit()

print('No')

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

n = int(input())

n_list = [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]

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

Solution (Python):

N = int(input())

flag = 0

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

Solution (Python):
import heapq as h
 

n = int(input())

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

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

for i in nums:
    for j in nums:
        if i*j == N:
            print("Yes")
            exit()
print("No")

Solution (Python):
import sys
n = int(input())
if n == 1:
    print('Yes')
    sys.exit()

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

print('No')

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

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

if ans1 == 0:
	print('No')
else:
	if n // ans1 < 10:
		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 and n//i >= 1:
        ans = "Yes"
        break
print(ans)

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

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

if 81 < n:
    print("No")
    sys.exit()

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

print("No")

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

for i in range(9):
    if n%(i+1)==0 and n/(i+1)<10:
        print("Yes")
        break
    elif i==8:
        print("No")

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

if ans[n] == 1:
    print('Yes')
else:
    print('No')

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

Solution (Python):
N=int(input())
flag=0
for i in range(1,10):
	if (N%i==0) and (N/i<10):flag=1


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

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

Solution (Python):
def main():
    N = int(input())
    mul = [[int(i) * int(j) for i in range(1,10)] for j in range(1,10)]

    for line in mul:
        if N in line:
            print("Yes")
            exit()
    print("No")


if __name__ == "__main__":
    main()

Solution (Python):



def solve(*args: str) -> str:
    n = int(args[0])

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

    return str(ret)


if __name__ == "__main__":
    print(solve(*[input() for _ in range(1)]))

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

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

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

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

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

if (81<n):
    print('No')
else:
    isOk=False  
  
    for i in range(1,10):
        if (n%i==0 and 1<=(n/i)<=9):
            isOk=True
            break
    
    if isOk:
        print('Yes')
    else:
        print('No')

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

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

S = []

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

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

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









listt=[]
for i in range(10):
  for j in range(10):
    listt.append(i*j)
    
if N in listt:
  print("Yes")
else:
  print("No")

Solution (Python):
from sys import stdin

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

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

print('No')

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

s = 0
for i in range(1,10):
    if n%i == 0 and n/i < 10:
        s += 1
        break
    else:
        True

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

Solution (Python):
all = [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]
n=int(input())  
if n in all:
    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):
n = int(input())


def solve(n):
    if n < 10:
        return "Yes"
    for i in range(2, 10):
        q, r = divmod(n, i)
        
        if q < 10 and r == 0:
            return "Yes"

    return "No"


print(solve(n))

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

Solution (Python):
N=int(input())
if N>81:
    print("No")
else:
    p_list=[9,8,7,6,5,4,3,2,1]
    for p in p_list:
        d,m=divmod(N,p)
        if d<10 and m==0:
            print("Yes")
            break
    else:print("No")

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

kuku = {1}
for i in range(1,10):
    for j in range(1,10):
        kuku.add(i*j)

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

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

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

QQ = []

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

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

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

flag = 0
for i in range(1, 10):
    if N % i == 0:
        a = N // i
        if a <= 9:
            flag = 1

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

Solution (Python):

N = int(input())

for i in range(1,10):
    if N % i == 0 and (N // i) >= 1 and (N // i) <= 9  :
        print('Yes')
        exit(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):
import sys
input = sys.stdin.readline
def solve():
  n = int(input())
  can = False
  for i in range(1,10):
    for j in range(1,10):
      if i*j == n:
        can = True
  if can:
    print("Yes")
  else:
    print("No")
solve()

Solution (Python):
N = int(input())
result = 0
for i in range(9):
    if N%(i+1) == 0:
        if N/(i+1)<=9:
            print('Yes')
            result += 1
            break
        else:
            pass
    else:
        pass
if result == 0:
    print('No')
else:
    None

Solution (Python):
from itertools import product

kuku = list(map(lambda i: i[0]*i[1], product(range(1,10), range(1,10))))

N = int(input())

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

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


if __name__ == '__main__':
    main()

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

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

Solution (Python):
import sys
n = int(input())
key = False
if n > 81:
    print('No')
else:
    for i in range(1,10):
        if n % i == 0:
            n2 = n //i
            if 1<= n2 <= 9:
                print('Yes')
                key = True
                break
    if key == False:        
        print('No')

Solution (Python):
N=int(input())
output='No'
for i in range(1, 10):
  j=N/i
  jj=N//i
  if j==jj and j>0 and j<10:
    output='Yes'
    
print(output)

Solution (Python):
def main():
  x = int(input())
  for i in range(9):
    for j in range(9):
      if (i+1) * (j+1) == x:
        return "Yes"
  return "No"

print(main())

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())
flag = False
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            flag = True

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

Solution (Python):


N = int(input())
boolean = False

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

Solution (Python):
a=int(input())
ans=1
for i in range(1,10):
  if a%i==0:
    if a/i<10:
      ans=0
      break
if ans==0:
  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 "No")

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

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

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

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

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

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

print(result)

Solution (Python):
def main(n):
    for i in range(9, 0, -1):
        for j in range(9, 0, -1):
            if n == (i * j):
                print('Yes')
                return
    print('No')


if __name__ == "__main__":
    n = int(input())

    main(n)

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

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

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

prods = []
for a in range(10):
  for b in range(10):
    prods.append(a*b)
if n in prods:
  print('Yes')
else:
  print('No')

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

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

cnt = False

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

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

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

flg = False
for a in range(10):
    for b in range(10):
        if N == a*b:
            flg = True
            break

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

Solution (Python):
import sys

n = int(input())

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

print('No')

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

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

if i in a:
    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")
		exit(0)
print("No")

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

Solution (Python):
n = int(input())
cnt = 0
for i in range(1,10):
    if n/i in {1,2,3,4,5,6,7,8,9}:
        cnt = 1
        break
print("Yes" if cnt == 1 else "No")

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

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

import sys

if n <= 9:
    print('Yes')
    sys.exit(0)

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

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

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

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

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

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

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

if isOk:
    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 != 0:
    continue
  if N // i < 10:
    ans = 'Yes'
print(ans)

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

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

kuku = set()
for i in range(1,10):
    for j in range(1,10):
        kuku.add(i*j)



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

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

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

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

print(ans)

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

if a in ans_list:
        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')
            quit()
print('No')

Solution (Python):
import sys


def solve():
    input = sys.stdin.readline
    mod = 10 ** 9 + 7
    n = int(input().rstrip('\n'))
    ls = [1, 2, 3, 4, 5, 6, 7, 8, 9]
    for i in range(1, 10):
        if n / i in ls:
            print("Yes")
            exit()
    print("No")


if __name__ == '__main__':
    solve()

Solution (Python):

n = int(input())
flag = False

for i in range(1, n+1):
    if n%i==0:
        counter = n//i
        if len(str(i))==1 and len(str(counter))==1:
            flag = True
if flag:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
ns = lambda: stdin.readline()

N = ni()

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

print(ans)

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

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

Solution (Python):
if __name__ == '__main__':
    x = int(input())
    for i in range(9, 0 , -1):
        if(x % i == 0):
            q = x / i
            if (q > 9):
                print("No")
            else:
                print("Yes")
            break

Solution (Python):

import sys


def solve(N: int):
    multi_list = []
    for i in range(1, 10):
        for j in range(1, 10):
            multi_list.append(i * j)
    if N in multi_list:
        print("Yes")
    else:
        print("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=False
for i in range(1,10):
    if float(n/i).is_integer() and n/i<=9:
        flg=True
        break

if flg:
    print('Yes')
else:
    print('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())
flag = 0
for i in range(1,10):
    for j in range(1,10):
        if N == i*j:
            flag = 1

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

Solution (Python):
import math
import random
from operator import itemgetter
import re
import sys
from itertools import accumulate
from collections import defaultdict
from collections import deque
from bisect import bisect_left,bisect
from heapq import heappop,heappush
from fractions import gcd
from copy import deepcopy
input = sys.stdin.readline
N= int(input())
nine_list = []
for i in range(1,10):
    for j in range(1,10):
        nine_list.append(i*j)
if N in nine_list:
    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')
        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")
      quit()
else:
  print("No")

Solution (Python):
import sys
import itertools
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)


def main():
    n = int(input())
    l = [1, 2, 3, 4, 5, 6, 7, 8, 9]
    arr = []
    for x in l:
        for y in l:
            arr.append(x*y)

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


if __name__ == '__main__':
    main()
    1

Solution (Python):

N = int(input())

arr = []
flg = False

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

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'
      break
  if ans == 'Yes':
    break
print(ans)

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


for i in range(1,int(math.sqrt(n))+1):
    if ((n%i == 0) and (i<10) and (n/i<10)):
        print("Yes")
        sys.exit(0)
            
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())

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'
for i in range(9):
    if n % (i+1) == 0:
        if n // (i+1) <= 9:
           ans = 'Yes'


print(ans)

Solution (Python):

N = int(input())

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

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

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

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

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

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

Solution (Python):

n = int(input())

def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])

    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])

    return arr

x = factorization(n)

l = []
for i in range(len(x)):
    for j in range(x[i][1]):
        l.append(x[i][0])


import itertools
c = list(itertools.product(range(2), repeat=len(l)))

flag = False
for i in range(len(c)):
    a = 1
    b = 1
    for j in range(len(c[i])):
        if c[i][j] == 0:
            a *= l[j]
        else:
            b *= l[j]
    if a <= 9 and b <= 9:
        flag = True

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

Solution (Python):

N = int(input())

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

print("No")

Solution (Python):
def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        a = []
        if n % i == 0:
            a.append(i)
            
            if i != n // i:
                a.append(n//i)
                
            else:
                a.append(i)
        divisors.append(a)

    
    return divisors

n = int(input())
divisors = make_divisors(n)
flag = 0
for i in divisors:
    if i:
        if 0 < i[0] < 10 and 0 < i[1] < 10:
            flag = 1

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

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

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

for a in range(1, 10):
    for b in range(1, 10):
        if a * b == N:
            able = True
            break

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

Solution (Python):
import math

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



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

x=int(input())
if x in r:
    print("Yes")
else:
    print("No")

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

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

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

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

Solution (Python):
n = int(input())
ans = ("No")
for i in range(9):
    for k in range(9):
        if n / (i+1) == k + 1:
            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):
A = int(input())
Y = 0
for i in range(9):
	for j in range(9):
		if A == (i+1)*(j+1):
			Y = 1

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

Solution (Python):


import sys

debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        
        
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    n = [int(e) for e in lines[0].split(" ")][0]

    return (n, )


def solve(n):

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

    return  result


def main():
    
    result = solve(*parse_input())
    if isinstance(result, list):
        for r in result:
            print("%s" % r, sep='')
    else:
        print("%s" % result, sep='')

if __name__ == '__main__':

    main()

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

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

flag = False

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

if n == 1:
    flag = True

print("Yes" if flag 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'
print(ans)

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

count = 0
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 == A:
      count += 1

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

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

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

b = False
for i in range(1, 10):
    if a % i == 0:
        if a // i < 10:
            b = True
print("Yes" if b else "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())
A = [1]
for i in range(1,10):
    if n%i == 0 and 1<n//i<=9:
        A.append(i)
        
b = max(A)

if n//b <10:
    print('Yes')
else:
    print('No')

Solution (Python):








N = int(input().strip())

result = 'No'
for a in range(1, 10):
    if N % a == 0:
        b = N / a
        if b > 0 and b < 10:
            result = 'Yes'
            break

print(result)

Solution (Python):
n=int(input())
q=[x*y for x in range(1,10) for y in range(1,10)]
if n in q:
  print("Yes")
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
      break
  if(f==1):
    break
if(f==1):
  print("Yes")
else:
  print("No")

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

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

Solution (Python):
def main():
	
	N = int(input())
	
	s = set()
	for i in range(1, 10):
		for j in range(1, 10):
			s.add(i*j)

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

if __name__ == "__main__":
	main()

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

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

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

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

print("No")