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):
    a,b=divmod(N,i)
    if 1 <= a <= 9 and b==0:
        print('Yes')
        exit()

print('No')

Solution (Python):
from itertools import product
N = int(input())
 
row = range(1, 10)
clo = range(1, 10)
 
A = 0
for row,clo in product(row,clo):
  if row*clo == N:
    A = "Yes"
if A != "Yes":
    A = "No"
print(A)

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

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

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

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

for i in range(1,10):
  q, mod=divmod(n,i)
  if(q<10 and mod==0):
   print('Yes')
   j=1
   break
   
if(j!=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):

N = int(input())
flag = False

for i in range(9):
    j = i + 1
    if N % j == 0 and N // j <= 9:
        print("Yes")
        flag = True
        break

if not flag:
    print("No")

Solution (Python):
import numpy as np
n = int(input())
k = np.arange(1, 10)
print("Yes" if (np.dot(k[:,None] , k[None,:]) == n).sum() else "No")

Solution (Python):
import numpy as np
n = int(input())
k = np.arange(1, 10)
a = n / k
c = n % k
b = ((c == 0) * (9 >= a) * (a >= 1))

print("Yes" if b.any() else "No")

Solution (Python):
b=int(input())
for i in range(1,10):
 if b%i==0 and b//i<10:
    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):
n = int(input())

t = 'No'

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

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

    flg = False
    for i in range(1, 10):
        if flg:
            break
        for j in range(1, 10):
            if i * j == N:
                print('Yes')
                flg = True
                break
    
    if not flg:
        print('No')

if __name__ == '__main__':
    solve()

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

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

Solution (Python):

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

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

for i in range(1,N+1):
  if N%i==0 and max(i,N//i)<=9:
    f = True

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

Solution (Python):

import sys

N = int(input())

for i in range(1,10):
  
  if N%i == 0 and len(str(int(N/i))) == 1:
    print('Yes')
    sys.exit()
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())
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 a in range(1,10):
    for b in range(1,10):
        if a * b == N:
            print('Yes')
            exit()

print('No')

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

result = False

if num == 1:
	result = True
else:
	for i in range(9, 1, -1):
		if num % i == 0 and num / i <= 9:
			result = True

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

Solution (Python):


'''
------------------------
author : iiou16
time : 11/01/12:11
------------------------
'''


def main():
    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")


if __name__ == '__main__':
    main()

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

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

for k in a:
    if n == k:
        print("Yes")
        break
    elif k == 81:
        print("No")

Solution (Python):
n = int(input())
if not isinstance(n, int):
    print("No")
else:
    ran = list(range(1,10))
    product = [x*y for x in ran for y in ran]
    print("Yes") if n in product else print("No")

Solution (Python):
n =int(input())
if n<10:
  print("Yes")
  exit()

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

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

Solution (Python):
n =int(input())
if n<10:
    print("Yes")
    exit()

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

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

Solution (Python):
input = int(input())
chars = [i for i in range(1,10)]
for n in chars:
  if input / n in chars:
    print("Yes")
    quit()
print("No")

Solution (Python):
def main():
    n = int(input())
    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)

if __name__ == '__main__':
    main()

Solution (Python):
N=int(input())
def f(N):
  for i in range(1,10):
    j=N//i
    if i*j==N and (j>=1 and j<=9):
      return(True)
  return(False)
if f(N):
  print("Yes")
else:
  print("No")

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

Solution (Python):


def solve():
    N = int(input())
    sets = set()
    for i in range(1, 10):
        for j in range(1, 10):
            sets.add(i*j)

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

if __name__ == "__main__":
    solve()

Solution (Python):

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

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

a = 0
for num1 in range(1,10) :
    for num2 in range(1,10) :
        if N == num1 * num2 :
            a = 1
            break
    if a == 1 :
        break


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

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

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

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

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

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

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

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

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

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

Solution (Python):
ans = set()
for i in range(10):
    for j in range(10):
        ans.add(i*j)
n = int(input())
print('Yes' if n in ans else 'No')

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

for i in range(1,10):
  b = a / i
  if b.is_integer() and 1 <= b < 10:
    print('Yes')
    ans = False
    break
  
if ans:
  print('No')

Solution (Python):
ab = input().split(" ")
a = int(ab[0])

def check(a):
	for i in range(1,10):
		if (a%i == 0) and (a/i < 10):
			return "Yes"
	return "No"

ans = check(a)
print(ans)

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

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


def solve():
    sys.setrecursionlimit(2000)
    input = sys.stdin.readline
    mod = 10 ** 9 + 7
    n = int(input().rstrip('\n'))
    for i in range(1, 10):
        for j in range(1, 10):
            if n == i * j:
                print("Yes")
                exit()
    print("No")


if __name__ == '__main__':
    solve()

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

Solution (Python):
def kakezan_list():
    kake_list = list()
    for i in range(1, 10):
        for j in range(1, 10):
            kake_list.append(i*j)
    return kake_list

n = int(input())


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

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

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

Solution (Python):
def solve(string):
    n = int(string)
    m = set([i * j for i in range(1, 10) for j in range(1, 10)])
    return "Yes" if n in m else "No"


if __name__ == '__main__':
    print(solve(input()))

Solution (Python):
import numpy as np
N = int(input())
kuku_array = np.zeros((9, 9))
for i in range(1,10):
  for j in range(i,10):
    kuku_array[i-1][j-1] = i*j
if np.any(kuku_array == N) == True:
  print('Yes')
else:
  print('No')

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

i=1
l=0
while i<10:
    if n/i==n//i and n//i<10:
        l=l+1
    i=i+1
print("Yes" if l>0 else "No")

Solution (Python):
A = [int(x) for x in input().split()]
a=A[0]
boo=False
for i in range(1,10):
    for j in range(1,10):
        if i*j==a:
            print('Yes')
            boo=True
            break
    if boo:
        break
else:
    print('No')

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

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

print('No')

Solution (Python):
n=int(input())
i=1
while i < 10:
  if n%i==0:
    if n/i < 10:
      print("Yes")
      i=10
  i=i+1
if i == 10:
  print("No")

Solution (Python):


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

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

    print("No")

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

answer = 'No'
if n > 9:
  for k in range(2, 10):
    if n % k == 0:
      d = n // k
      if 1 <= d and d <= 9:
        answer = 'Yes'
        break
else:
  answer = 'Yes'

print(answer)

Solution (Python):
import math
import sys

N=int(input())

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

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

print('Yes' if res 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())
 
times_table = [list(i*j for i in range(1, 10)) for j in range(1, 10)]
 
print('Yes' if any(n in t for t in times_table) else 'No')

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

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

print('Yes' if any(n in t for t in times_table) else 'No')

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

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

print("No")

Solution (Python):

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


if(__name__ == "__main__"):
    main()

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

Solution (Python):
def main():
    n = int(input())
    ans = 0
    for i in range(1,10):
        for j in range(1,10):
            if n == i * j:
                ans = 1
                return ans
                break
        else:
            continue
        return ans
        break

if __name__ == "__main__":
    ans = main()
    if ans == 1:
        print("Yes")
    else:
        print("No")

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

print('No')

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

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

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

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

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

result = False

if N > 0 and N < 82:
  for x in range(1,10):
    if (N%x)==0 and (N/x) < 10:
      result = True
if result:
  print('Yes')
else:
  print('No')

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

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

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

ans_sum = []
for i in range(1, round(math.sqrt(n) + 2)):
    if n%i == 0:
        ans = set([])
        if i <10 and n//i <10:
            ans.add(i)
            ans.add(n//i)
            ans_sum.append(ans)
            
if len(ans_sum) > 0:
    print("Yes")
else:
    print("No")

Solution (Python):
a = int(input())
li = []
for i in range(9):
    num_i = i + 1
    for j in range(9):
        num_j = j + 1
        li.append(num_i * num_j)

print("Yes" if a in li else "No")

Solution (Python):
import sys
sys.setrecursionlimit(10**7)
INTMAX = 9223372036854775807
INTMIN = -9223372036854775808
MOD = 1000000007
def POW(x, y): return pow(x, y, MOD)
def INV(x, m=MOD): return pow(x, m - 2, m)
def DIV(x, y, m=MOD): return (x * INV(y, m)) % m
def LI(): return [int(x) for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()
def II(): return int(input())

N=II()

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

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

Solution (Python):
data=int(input())
sum=0

for i in range(9):
  a=data%(i+1)
  b=data/(i+1)
  if a==0 and b<=9:
    sum+=1
if sum>=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 < 10:
        ans = 'Yes'
        break
        
print(ans)

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

answer = "No"

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

print(answer)

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

n=int(input())
l=[x*y for x in range(1,10) for y in range(1,10)]
if n in l:
    print("Yes")
else :
    print("No")

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

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

Solution (Python):
n=int(input())
num = [i for i in range(1,10)]
ans = "No"

for i in num:
    if n/i in num:
        ans = "Yes"
        break
print(ans)

Solution (Python):
n = int(input())
li=[]
if (n>82):
    print('No')
else:
    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 and 1 <= N // i <= 9:
        print("Yes")
        exit()

print("No")

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

answer = ['No']*101

for i in range(1,10):
    for j in range(1,10):
        answer[i*j]='Yes'

print(answer[num])

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

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

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

x = 1
i = 2
while N > 9:
  if N % i == 0:
    x = x * i
    N = N // i
  else:
    i += 1
  if i > 9:
    print("No")
    quit()
  if x > 9:
    print("No")
    quit()
  if N < 10:
    print("Yes")
    quit()

print("Yes")

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

flg = 0
for a in range(1, 10):
    for b in range(1, 10):
        if a*b == n:
            print("Yes")
            flg = 1
            break
    if flg:
        break
else:
    print("No")

Solution (Python):
from itertools import product

N = int(input())

nums = set([a * b for a, b in product(range(1, 10), repeat=2)])

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

Solution (Python):
n = int(input())
ans = "No"
for i in range(9):
  div = 9 - i
  if not n % div:
    if n // div < 10:
      ans = "Yes"
    break
print(ans)

Solution (Python):

def okay_ornot(n):
    if n > 81:
        print("No")
        return
    else:
        for i in range(9):
            for j in range(9):
                if (i+1) * (j+1) == n:
                    print("Yes")
                    return
        print("No")
        return

n = int(input())
okay_ornot(n)

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

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

Solution (Python):
a = int(input())
kk = {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 a in kk:
  print("Yes")
else:
  print("No")

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

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

n = int(input())

print(main(n))

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

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

Solution (Python):
import numpy as np

n = int(input())
x = np.matrix(list(range(1,10,1)))

xx = x.T*x

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

Solution (Python):
N=int(input())
print('YNeos'[not [i for i in range(1,10) if N%i==0 and N//i<10]::2])

Solution (Python):

n = int(input())
o = 'No'
if n <=81:
    for i in range(1,10):
        r = n%i
        q = n//i
        if r == 0 and 1<=q<= 9:
            o = 'Yes'
            break
print(o)

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

if c!=1:
    print("No")

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

if n in [x * y for x in range(1, 10) for y in range(1, 10)]:
    print("Yes")
else:
    print("No")

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

Solution (Python):
inputs = input().rstrip()

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

print("No")

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

for i in range(9):
    r = a//(i+1)
    q = a%(i+1)
    if(q==0 and (r>0 and r<=9) ):
        flag = True
        
if(flag == True):
    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())
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()
print("No")

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

Solution (Python):
cont = 0
a = int(input())
for i in range(1, 10):
    for f in range(1, 10):
        if i*f == a:
            cont += 1
        else:
            pass
if cont > 0:
    print("Yes")
else:
    print("No")

Solution (Python):
from sys import exit, stdin
N = int(stdin.readline().rstrip())
for i in range(1, 10):
    for j in range(1, 10):
        if i*j == N:
            print('Yes')
            exit()
print('No')

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

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

print(ans)

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

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

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

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

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

Solution (Python):
x=[]
for i in range(1,10):
  for j in range(1,10):
    k=i*j
    x.append(k)
n=int(input())
if n in x:
  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:
    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()
        elif i * j == 81:
            print("No")

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

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

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

print("No")

Solution (Python):
import sys
import math
from copy import deepcopy
from collections import deque, defaultdict
from operator import mul
from functools import reduce
sys.setrecursionlimit(20000000)




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

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

    print('No')


if __name__ == '__main__':
    main()

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

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

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

print(check(N))

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

Solution (Python):
n=int(input())
ifbreak = "FALSE"
for i in range(9):
  for j in range(9):
    if n == ((i+1)*(j+1)):
      print("Yes")
      ifbreak = "TRUE"
      break
  if ifbreak=="TRUE":
    break
if ifbreak == "FALSE":
  print("No")

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

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

Solution (Python):
s = set()

for a in range(1,10):
    for b in range(1,10):
        s.add(a*b)

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

Solution (Python):
n=int(input())
a=0
for i_1 in range(9):
    for i_2 in range(9):
        if (i_1+1)*(1+i_2)==n:
            a+=1
if a>0:
    print("Yes")
else:
    print("No")

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

Solution (Python):
n=int(input()) 
r=False
for i in range(1,10):
	if ((n%i)==0 )&(int(n/i)<=9):
		r=True
if r:
	print("Yes")
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())
t=(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 t:
  print("Yes")
else:
  print("No")

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

hantei = 0

for k in range(9):
    i = k+1
    answer = divmod(N, i)
    if answer[0] < 10 and answer[1] == 0:
        hantei = 1

if hantei == 0:
    print('No')
else:
    print('Yes')

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

Solution (Python):
a = int(input());
h = True
for i in range(1,10):
    b = a / i
    if b.is_integer() == True and b < 10:
        h = False
print('YNeos'[h::2])

Solution (Python):


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

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

YESFLAG = False

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

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

Solution (Python):
N = int(raw_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())
a = [ ]
for i in range(1,10):
    for j in range(i,10):
        b = i*j
        a.append(b)
if a.count(N) == 0:
    print('No')
else:
    print('Yes')

Solution (Python):
N = int(input())
a = []
ans = False
for i in range(1,10):
  a.append(N/i)
for i in range(9):
  if a[i].is_integer() and a[i] < 10:
    ans = True
if ans == False:
  print('No')
else:
  print('Yes')

Solution (Python):
n = int(input())
x=0
for i in range(1,10):
    for j in range(1,10):
        if i * j == n:
            print("Yes")
            x = 1
            break
    if x == 1:
        break
if x == 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):
def solve(n):
    for i in range(1, 10):
        for j in range(1, 10):
            if i * j == n:
                return "Yes"
    return "No"

n = int(input())
print(solve(n))

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

Solution (Python):
N = int(input())
res = False
for i in range(1, N+1):
  if i * i > N:
    break
  else:
    q = N // i
    if i * q == N and 1 <= i <= 9 and 1 <= q <= 9:
      res = True
      break
print('Yes' if res else '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):
N = int(input())
 
flg = False
 
for i in range(1, 10):
  if flg:
    break
  for j in range(1, 10):
    if i*j == N:
      flg = True
      break
      
if flg:
  print('Yes')
else:
  print('No')

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

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