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



import sys
import math
from bisect import bisect_right as br
from bisect import bisect_left as bl
sys.setrecursionlimit(1000000)
from heapq import heappush, heappop,heappushpop
from collections import defaultdict
from itertools import accumulate
from collections import Counter
from collections import deque
from operator import itemgetter
from itertools import permutations
mod = 10**9 + 7
inf = float('inf')
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))

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

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

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

print("No")

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

ln = []

for i in range(1,10):
  for j in range(1,10):
    ln.append(i*j)
    
print("Yes" if n in ln else "No")

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

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

    return divisors

div = make_divisors(N)
ans='No'
for i in range(len(div)//2):
  a=div[2*i]
  b=div[2*i+1]
  if (a<10) and (b<10):
    ans='Yes'
    break
if len(div)%2==1:
  if div[-1] <10:
    ans='Yes'
print(ans)

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

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

Solution (Python):
def input_int():
    hoge = input()
    return int(hoge)

if __name__ == "__main__":
    hoge = input_int()
    for i in range(10):
        for k in range(10):
            piyo = i * k
            if piyo == hoge:
                print("Yes")
                exit(0)
    print("No")

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

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

Solution (Python):
import sys


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

isTest=False

def pa(v):
	if isTest:
		print(v)

if __name__ == "__main__":
	if sys.platform =='ios':
		sys.stdin=open('inputFile.txt')
		isTest=True
	else:
		pass
		
			
	ret = main()
	if ret is not None:
		print(ret)

Solution (Python):
n = int(input())
num = [1, 2, 3, 4, 5, 6, 7, 8, 9]
for nu in num:
    if n % nu == 0 and n / nu < 10:
        print('Yes')
        exit()
print('No')

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

Solution (Python):
s = raw_input().split()
[N] = s
N = int(N)

if (N == 1):
    print "Yes"
    exit(0)

for i in range(8):
    if (N % (i+2) == 0 and N / (i+2) <= 9):
        print "Yes"
        exit(0)

print "No"

Solution (Python):

N = int(input())


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

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

for m in range(1,10):
    for n in range(1,10):
        multi = m * n
        list.append(multi)

if i in list:
    print('Yes')
else:
    print('No')

Solution (Python):
num = int(input().rstrip())
flag = 0
for i in range(1, 10):
  if num%i == 0:
    if num//i < 10:
      print("Yes")
      flag = 1
      break
  else:
    continue
if flag == 0:
  print("No")

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

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


print(ans)

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

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

def prime_factorize(n):
    a = []
    while n % 2 == 0:
        a.append(2)
        n //= 2
    f = 3
    while f * f <= n:
        if n % f == 0:
            a.append(f)
            n //= f
        else:
            f += 2
    if n != 1:
        a.append(n)
    a.sort(reverse = True)
    return a

a = prime_factorize(n = N)
ans = 'Yes'


if len(a) == 0:
    if N > 9:
        ans = 'No'
elif len(a) > 4:
    if N / 8 > 9:
        ans = 'No'
elif len(a) == 3:
    if a[1] * a[2] > 9:
        ans = 'No'
else:
    n = N
    b = []
    for i in a:
        n = n / i
        b.append(n)

    if a[0] > 9:
        ans = 'No'
    if N > 81:
        ans = 'No'
    
print(ans)

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

    if N % i == 0:
        if N / i <= 9:
            c = "Yes"
            break
        else:
            c = "No"
    else:
        c = "No"
print(c)

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

if N>81:
    print('No')
else:
    import numpy as np
    n=np.array([1,2,3,4,5,6,7,8,9])
    amari=N%n
    shou=N//n
    if np.any((amari==0)*(shou<=9)):
        print('Yes')
    else:
        print('No')

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

for i in range(1, 10):
  if n%i == 0:
    s = n/i

if s <= 9:
  print('Yes')
else:
  print('No')

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

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

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

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

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

l = []
for a in range(10):
    for b in range(10):
        if a*b==N :
            p='Yes'
            l.append(p)
            
        else:
            q='No'
            l.append(q)
if 'Yes' in l:
    print(p)
else:
    print(q)

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

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

if (N <= 81):
    if (N <= 9):
        print("Yes")
    elif (N < 20 and N & 1 == 0):
        print("Yes")
    elif (N < 30 and N % 3 == 0):
        print("Yes")
    elif (N < 40 and N % 4 == 0):
        print("Yes")
    elif (N < 50 and N % 5 == 0):
        print("Yes")
    elif (N < 60 and N % 6 == 0):
        print("Yes")
    elif (N < 70 and N % 7 == 0):
        print("Yes")
    elif (N < 80 and N % 8 == 0):
        print("Yes")
    elif (N == 81):
        print("Yes")
    else:
        print("No")
else:
    print("No")

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

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

Solution (Python):

import math
a = int(input())
if a == 1: print('Yes')
else:
    if a <= 81:
        b = round(math.sqrt(a))
        while a % b != 0: b -= 1
        c = int(a / b)
        if b < 10 and c < 10: print('Yes')
        else: print('No')
    else: print('No')

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

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

kuku = []

for a in range(1, 10):
    for b in range(1, 10):
        kuku.append(a * b)

for x in range(0, 81):
    if N == kuku[x]:
        check = 0
        break
    else:
        check = 1

if check == 0:
    print("Yes")
elif check == 1:
    print("No")

Solution (Python):
int = int(input())
l = [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 int in l:
  print('Yes')
else:
  print('No')

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

for i in range(1, 10):
    if N % i == 0:
        div = int(N / i)
        if div >= 1 and div <= 9:
            print('{}'.format('Yes'))
            
            exit()

print('{}'.format('No'))

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

    
    return divisors


N = int(input())

div = make_divisors(N)
div2 = [True if i[0] < 10 and i[1]  < 10 else False for i in div]

if div and all(div):
    print('Yes')
else:
    print('No')

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

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

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

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

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

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

Solution (Python):

N = int(input())

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

Solution (Python):
def allmultiply():
	setmulti = set()
	for i in range(1,10):
		for j in range(1,10):
			setmulti.add(i*j)
	return setmulti

if __name__ == '__main__':
  N = int(input())
  setmulti = allmultiply()
  if N in setmulti:
  	print('Yes')
  else:
  	print('No')

Solution (Python):
data = int(input())
     
ans = ""
flag = True
if __name__ == "__main__":
  for i in range(1,10):
    if flag:
      for j in range(1,10):
        ans = i*j
        if ans == data:
          print("Yes")
          flag = False
          break
    else:
      break
  if flag:
    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
    print('No')


if __name__ == '__main__':
    main()

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

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

for i in b:
    for j in b:
        c.append(i*j)

if N in set(c) :
  print('Yes')
else:
  print('No')

Solution (Python):
N = int(input())
if N > 81:
  print("No")
elif N>=1 and N<=10:
  print("Yes")
elif N==12 or N==14 or N==15 or N==16 or N==18 or N==20 or N==21 or N==24 or N==25 or N==27 or N==28 or N==30 or N==32 or N==35 or N==36 or N==40 or N==42 or N==45 or N==48 or N==49 or N==54 or N==56 or N==63 or N==64 or N==72 or N==81:
  print("Yes")
else:
  print("No")

Solution (Python):
n = int(input())
i = 1
while i < 11:
	if i == 10:
		print('No')
		break
	elif n % i == 0 and n / i < 10:
		print('Yes')
		break
	else:
		i += 1

Solution (Python):


def solve():
    N = int(input())
    for i in range(1, 10):
        q, mod = divmod(N, i)
        if q <= 9 and mod == 0:
            print('Yes')
            break
    else:
        print('No')


if __name__ == '__main__':
    solve()

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

Solution (Python):
n = int(input())
list = list(range(9, 1, -1))
ans = 0

if n > 1:
    while n > 1:
        flag = 1
        for i in list:
            if n % i == 0:
                n = n / i
                ans += 1
                flag = 0
                break

        if flag == 1:
            ans = 0
            break
elif n == 1:
    ans = 2

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

Solution (Python):
N = int(input())
 
c = 'No'
nums = [(n, N/n) for n in range(1,10,1) if N % n == 0]
for a, b in nums:
  if a < 10 and b < 10:
    c = 'Yes'
    break
print(c)

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

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

    print('No')


if __name__ == '__main__':
    main()

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

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

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = int(readline())

se = set(x*y for x in range(1,10) for y in range(1,10))

answer = 'Yes' if N in se else 'No'
print(answer)

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

Solution (Python):
n=int(input())
is_yes = False
for i in range(1,10):
    if n/i == n//i and n/i < 10:
        print('Yes')
        is_yes = True
        break
if not is_yes:    
    print('No')

Solution (Python):
N = input()
list = [str(x*y) for x in range(1,10) for y in range(1,10)]
result = str(N) in list

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

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

Solution (Python):
import itertools

N = int(input())

a = list(range(1,10))

dec = []
for x in a:
    for y in a:
        dec += [x*y]

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

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

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

Solution (Python):
N = int(input())
if 9*9 < N:
    print('No')
    exit()

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

print('No')

Solution (Python):
N = int(input())
n = 0
if 81 < N:
    n = "No"
elif N <= 9:
    n = "Yes"
else:
    for a in range(2, 10):
        for b in range(2, 10):
            if a * b == N:
                n = "Yes"
                break
    if n is 0:
        n = "No"
print(n)

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

N = int(input())

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


for i in range(1, 10):
    ans = N / i
    if ans in one_to_nine:
        print("Yes")
        quit()
print("No")

Solution (Python):

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

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

Solution (Python):

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

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

int_list = [9,8,7,6,5,4,3,2,1]

ans = 'No'

for i in int_list:
  n_ = n / i 
  for j in int_list:
    if n_ / j == 1:
      ans = 'Yes'
print(ans)

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

def isPrime(n) : 
  
    
    if (n <= 1) : 
        return False
    if (n <= 3) : 
        return True
  
    
    
    if (n % 2 == 0 or n % 3 == 0) : 
        return False
  
    i = 5
    while(i * i <= n) : 
        if (n % i == 0 or n % (i + 2) == 0) : 
            return False
        i = i + 6
  
    return True

if N<=9:
  print("Yes")
elif ( N == 50 or N ==60 or N == 70 or N == 80 or isPrime(N) or N>81):
  print("No")
else:
  i = 2
  while(i<=9):
    if N%i == 0 and 1<=N/i <= 9:
      print("Yes")
      break
    else:
      if i == 9:
        print("No")
        break
      else:
        i = i + 1

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

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

list_aaa = [1,2,3,4,5,6,7,8,9]

ans = 0
_not = 0
yes =0

for i in list_aaa:
    ans = math.ceil(N/i)
    if ans >=10 or N%i >=1 :
        _not +=1
    else:
       yes +=1

if yes >=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):
a=[]
for i in range(1,10):
	for j in range(1,10):
		a.append(i*j)

x = int(input())

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

Solution (Python):
import sys
import math

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


for line in sys.stdin:
    N = int(line)

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

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

print(ans)

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

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

Solution (Python):
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())

first = 0
second = 0
flag =0
for i in range(9):
    first +=1
    second = 0
    for j in range(9):
        second +=1
        if(first * second == N):
            flag =1
if(flag == 1):
    print('Yes')
else:
    print('No')

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

def exe001(num):
    factor = 2
    factor_list = []
    flag = 'Yes'

    while num > 1 or factor < 10:
        if num % factor == 0:
            factor_list.append(factor)
            num //= factor
        else:
            factor += 1
    

    if len(factor_list) > 3:
        for item in factor_list:
            if item >= 5:
                flag = 'No'
                break
            else:
                if len(factor_list) > 6:
                    flag = 'No'
                    break
                elif len(factor_list) > 5:
                    if 3 in factor_list:
                        flag = 'No'
                        break                      

    elif len(factor_list) == 3:
        if factor_list[0] * factor_list[1] < 10 and factor_list[2] < 10:
            pass
        else:
            flag = 'No'

    else:
        for item in factor_list:
            if item >= 10:
                flag = 'No'
                break


    print(flag)
exe001(num)

Solution (Python):
n = int(input())
k = 0
if n >= 1 and n <= 9 or n % 2 == 0 and n <= 18 or n % 3 == 0 and n <= 27 or n % 4 == 0 and n <= 36 or n % 5 == 0 and n <= 45 or n % 6 == 0 and n <= 54 or n % 7 == 0 and n <= 63 or n % 8 == 0 and n <= 72 or n % 9 == 0 and n <= 81:
    print("Yes")
else:
    print("No")

Solution (Python):
a = int(input())
list1 = []
for i in range(9):
  for j in range(9):
    list1.append((i+1)*(j+1))
b = len(list1)
flag = 0
for k in range(b):
  if a == list1[k]:
    flag = 1
    break;
if flag == 1:
  print("Yes")
else:
  print("No")

Solution (Python):


N = int(input())
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 81 < N:
    print('No')
elif N in List:
    print('Yes')
else:
    print('No')

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

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

b = [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,56,63,64,72,81]
if(a in b):
  print("Yes")
  
else:
  print("No")

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

res = "No"

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

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

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

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

result = 'No'

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

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

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

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

solve = 0
for i in range(9):
    A = i+1
    for j in range(9):
        B = j+1
        if A*B == N:        
            print('Yes')
            solve = 1
            break     
    if solve == 1:
      break
if solve == 0:
    print('No')

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

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

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

Solution (Python):
a = int(input())
N = []
b = a
for i in reversed(range(1,10)):
  
  if b % i == 0:
    N.append(i)
    b = b//i
    for i in reversed(range(1,10)):
        if b % i == 0:
          N.append(i)
          b = b//i
    
if len(N) == 1:
  if a < 10:
    print("Yes")
  else:
    print("No")
else: 
  if N[0]*N[1]== a:
    print("Yes")
  else:
    print("No")

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

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

mt = [1,2,3,4,5,6,7,8,9, \
     4,6,8,10,12,14,16,18,\
     9,12,15,18,21,24,27,\
     16,20,24,28,32,36,\
     25,30,35,40,45,\
     36,42,48,54,\
     49,56,63, \
     64,72, \
     81]

if a in mt:
  print("Yes")
else:
  print("No")

Solution (Python):
import sys

N = int(input())

if N < 10:
    print('Yes')
else:
    for p in range(2, 10):
        if N % p == 0 and N / p < 10:
            print('Yes')
            break
        elif p == 9 and (N % p != 0 or N / p > 10):
            print('No')

Solution (Python):
N=int(input())
ans=[0]*81
cnt=0
for i in range(1,10):
    for j in range(1,10):
        ans[cnt]=i*j
        cnt=cnt+1
if N in ans:
    print("Yes")
else:
    print("No")

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

Solution (Python):
num = int(input())
nine = [1,2,3,4,5,6,7,8,9]
flag = 0
for i in nine:
    amari = num % i 
    if amari == 0:
        if num // i in nine:
            print("Yes")
            flag = 1
            break
if flag == 0:
    print('No')

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

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

print(ans)

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


N = int(input())

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

Solution (Python):
import sys
n = int(input())
if n > 81 or n == 0:
    print('No')
    sys.exit()
elif n == 1:
    print('Yes')
    sys.exit()
else:
    for i in reversed(range(2, 10)):
        if n % i != 0:
            pass
        elif n % i == 0 and n / i < 10:
            print('Yes')
            sys.exit()
        else:
            print('No')
            sys.exit()
print('No')

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

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

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())
flag = 0

for i  in range(9):
    atai = N / (i + 1) 
    for j in range(9):
        if atai == j + 1:
            flag = 1
            break
    if flag == 1:
        break
if flag == 1:
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())
res = []
for i in range(1,10):
    for j in range(1,10):
        res.append(i*j)
res = set(res)
if n in res:
    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):
a = int(input())
b = 0
if a<= 81:
  for i in range(9):
    for j in range(9):
      if (i+1)*(j+1)==a:
        b=1
        break
if b==0:
  print("No")
else:
  print("Yes")

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

Solution (Python):
n = int(input())
x=[]
i=1
while not i == 10:
    x.append(i*1)
    i+=1
i=1
while not i == 10:
    x.append(i*2)
    i+=1
i=1
while not i == 10:
    x.append(i*3)
    i+=1
i=1
while not i == 10:
    x.append(i*4)
    i+=1
i=1
while not i == 10:
    x.append(i*5)
    i+=1
i=1
while not i == 10:
    x.append(i*6)
    i+=1
i=1
while not i == 10:
    x.append(i*7)
    i+=1
i=1
while not i == 10:
    x.append(i*8)
    i+=1
i=1
while not i == 10:
    x.append(i*9)
    i+=1
i = 1
for i in range(len(x)):
    if x[i] == n:
        print('Yes')
        quit()
print('No')

Solution (Python):
num = int(input())
Flag = False
for x in range(1,10):
  for y in range(x,10):
    if x * y == num:
      Flag = True
      break
    if Flag == True:
      break

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

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

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

b = arr.count(a)

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

Solution (Python):

n = int(input())
check = 0
for x in range(1,10):
    for y in range(1,10):
        if n == x*y:
            print('Yes')
            quit()
print('No')

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

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

a = int(input())
b = docchi(a)
print(b)

Solution (Python):
def solve(N):
    for i in range(1, 10):
        if N % i == 0:
            b = N // i
            if b < 10:
                return "Yes"
    return "No"


N = int(input())
print(solve(N))

Solution (Python):
num=int(input())
if num>81:
    print('No')
else:
    num_list=[]
    
    for a in range(1,10):
        for b in range(1,10):
            num_list.append(a*b)
    num_list=set(num_list)
    if num in num_list:
        print('Yes')
    else:
        print('No')

Solution (Python):
import sys
def is_integer(n):
    try:
        float(n)
    except ValueError:
        return False
    else:
        return float(n).is_integer()
a = input()
a = int(a)
if  a == 1:
 print("Yes")
 sys.exit()
k = range(1,a)
for s in k:
 res = a/s
 
 
 try:
  res = int(res)
 except:
  break
 if is_integer(s):
  if is_integer(res):
   if len(str(s)) == 1:
    if len(str(res)) == 1:
     
     if res * s == a:
      print("Yes")
      sys.exit() 
print("No")

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

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

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

Solution (Python):
n=int(input())
a=[1,2,3,4,5,6,7,8,9]
b=0

for i in a:
  if n%i==0:
    if n/i<=9:
      b+=1
      
if b>0:
  print("Yes")
else:
  print("No")

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