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

Solution (Python):
input_number = int(input())
number_list_A = (1,2,3,4,5,6,7,8,9)
number_list_B = number_list_A
number_list_AB = []

for a in number_list_A:
	a = int(a)
	for b in number_list_B:
		b = int(b)
		number_list_AB.append(a*b)

if input_number in number_list_AB:
	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())
a='No'

for i in range(10):
    if a=='Yes':
        break

    for j in range(10):
        if i*j==N:
            a='Yes'
            break


print(a)

Solution (Python):
from sys import stdin

N = int(input())

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

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

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

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

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

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

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

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

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

prime=[1]
for i in range(0,82):
    for j in range(2,10):
        P=i%j
        if P==0 and i/j<10:
            prime.append(i)
            break
if N in prime:
    print('Yes')
else:
    print('No')

Solution (Python):
from functools import reduce
n = int(input())

div_rem = [(n / i, n % i) for i in range(1, 10)]


def reducer(acc, x):
    return acc or (x[1] == 0 and x[0] <= 9)


possible = reduce(reducer, div_rem, False)


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

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

for q in range(1,10):
    for w in range(1,10):
        b.add(q*w)

if a in b:print('Yes')
else:print('No')

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

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

Solution (Python):
def get_input():
    return int(input())


def main():
    N = get_input()

    for i in range(1, 10):
        if N / i in range(1, 10):
            print("Yes")
            return
    print("No")


main()

Solution (Python):



N = int(input())

f = False
for i in range(1,10):
  if N % i == 0 :
    if N/i < 10 :
      print ("Yes")
      f = True
      break
if f is False :
  print ("No")

Solution (Python):
import sys
input = sys.stdin.readline
def print_ans(input_line):
    """Test Case
    >>> print_ans("10")
    Yes
    >>> print_ans("50")
    No
    >>> print_ans("81")
    Yes
    """
    N = int(input_line)
    for i in range(1,10):
        q, mod= divmod(N,i)
        if mod == 0 and 0 < q < 10:
            print("Yes")
            break
        elif i == 9:
            print("No")


if __name__ == '__main__':
    print_ans(input())

Solution (Python):
a=int(input())
for i in range(9):
    if a %(i+1)==0 and len(str(a//(i+1)))==1:
        print("Yes")
        exit()
print('No')

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

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

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

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

for i in range(1, 10, 1):
  if(num%i == 0):
    tmp = int(num/i)
  else:
    continue
      
  if(0 < tmp & tmp < 10):
    yes = 1
    break

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

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

Solution (Python):
from sys import stdin

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

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

Solution (Python):

"""
Created on Wed Nov  6 21:49:38 2019

@author: over-
"""

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

Solution (Python):
import copy
import heapq
import math
import fractions

def j(n):
    if n:print("Yes")
    else:print("No")
    exit(0)
rem = 10 ** 9 + 7

"""
def ct(x,y):
    if (x>y):print("+")
    elif (x<y): print("-")
    else: print("?")
"""

def ip():
    return int(input())
def iprow():
    return [int(i) for i in input().split()]
def ips():
    return (int(i) for i in input().split())
def ipmultiplerow(n):
    a = []
    for i in range(n):
        a.append(ip())
    return a
def printmultiplerow(a):
    for i in a:
        print(i)
def printrow(a):
    for i in range(len(a)-1):
        print(a[i],end = " ")
    print(a[-1])


n = ip()
for i in range(10):
    for k in range(10):
        if i*k==n: j(1)
j(0)

Solution (Python):
a = int(input())
f = False
for i in range(9):
    t = a / (i + 1)
    if t == int(t) and t < 10:
        print("Yes")
        f = True
        break
if not f:
    print('No')

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

flag = True

if n > 81:
    print('No')
    flag = False

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

    if flag:
        print('No')

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

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

Solution (Python):
N=int(input())
a=[0]*45
k=0
for i in range(1,10):
     for j in range(i,10):
               a[k]=i*j
               k+=1
printed=False
for i in a:
     if N==i:
          print("Yes")
          printed=True
          break
if printed==False:
     print("No")

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

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

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

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

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

Solution (Python):
a=int(input())
i=1
end=0
while(i<=9 and end ==0):
    j=1
    while(j<=9 and end==0):
        if i*j==a:
            print('Yes')
            end=1
        j+=1
    i+=1
    if end ==1:
        break
if end ==0:
    print('No')

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

for i in range(10):
	for j in range(10):
		if n == i * j:
			print('Yes')
			break
	else:
		continue
	break
else: 
	print('No')

Solution (Python):
s=int(input())
ci=0
def c(x):
  co=0
  for i in range(1,10):
    if x%i==0 and x//i<=9:
      co+=1
  if co>0:
    return("Yes")
  else:
    return("No")
print(c(s))

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):
input = str(input())
list = [str(x*y) for x in range(1,10) for y in range(1,10)]

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

Solution (Python):
a = [0] * 100
for i in range(1, 10):
    for j in range(1, 10):
        a[i * j] = 1
num = int(input())
if num < 100 and a[num] == 1:
    print('Yes')
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())

for x in range(1,10) :
    for y in range(1,10):
        if x * y == n :
            print("Yes")
            exit()
print("No")

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

Solution (Python):
numeros = [1,2,3,4,5,6,7,8,9]
multiplicaciones = []

for x in numeros:
	for z in numeros:
		multiplicaciones.append(x*z)
		pass
	pass
entrada = int(input())
si = False
for x in multiplicaciones:
	if(x==entrada):
		si=True
		break

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

Solution (Python):
n=float(input())
sw = True
for i in range(1,10):
  if n / i <= 9 and  (n / i).is_integer():
    print('Yes')
    sw = False
    break
if sw:
  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):
n=int(input())
cross_list=[]
for i in range(1,10):
    for j in range(1,10):
        cross_list.append(i*j)
if n in cross_list:
    print('Yes')
else:
    print('No')

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

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

Solution (Python):
n = int(input())
j = 1
A = "No"
while j < 10:
  i = 1
  while i < 10:
    if n / j == i:
      A = "Yes"
      break
    else:
      i += 1
  j += 1
print(A)

Solution (Python):
import sys

N = int(sys.stdin.read())

S = set(a * b for a in range(1, 10) for b in range(1, 10))
answer = "Yes" if N in S else "No"
print(answer)

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):
a = int(input())

flag = True
i = 9
while flag and i > 0:
    if a % i == 0:
        b = int(a/i)
        if b < 10:
            print('Yes')
        else :
            print('No')
        flag = False
    else :
        i -= 1

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

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

Solution (Python):



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

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

    print('No')


if __name__ == '__main__':
    main()

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

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

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

for i in range(1, 10):
    if n / i <= 9 and (n / i).is_integer() == True:
        judge = 'Yes'
        break
else:
    judge = 'No'

print(judge)

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

print(ans)

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

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

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

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

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

if flag==True:
    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())
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 = int(input())
result = "No"
for i in range(1,10):
	if (a % i == 0) and (a / i < 10):
		result = "Yes"
		break
print(result)

Solution (Python):
N = int(input())
ret = False
for i in range(1, 9 + 1):
    for j in range(i, 9 + 1):
        if i * j == N:
            ret = True
            break
    else:
        continue
    break
print("Yes" if ret else "No")

Solution (Python):


a = int(input())
yes = False

for i in range(1, 10):
  q, mod = divmod(a, i)
  if (mod == 0 and 1 <= q <= 9):
    yes = True
    break

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

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

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

results_set = set(results)
if N in results_set:
    print('Yes')
else:
    print('No')

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

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

Solution (Python):



def main():
    N = input_line(int)
    kuku = set(x * y for x in range(1, 10) for y in range(1, 10))
    if N in kuku:
        print("Yes")
    else:
        print("No")


def input_line(*types):
    if len(types) == 1:
        return types[0](input())
    else:
        return [t(x) for t, x in zip(types, input().split())]


if __name__ == "__main__":
    main()

Solution (Python):
N = int(input())
l = [1,2,3,4,5,6,7,8,9]
ans = 0
for i in range(1,10):
        if l.count(N/i)>0:
                print('Yes')
                ans += 1
                break
if ans== 0:
        print('No')

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

Solution (Python):
import sys
N=int(input())
for i in range(9):
  i=i+1
  for j in range(9):
    j=j+1
    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"
print(ans)

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

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

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

Solution (Python):
n =int(input())
yes = True
primesand10=[10,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97]
if n <= 10:
  yes = True
elif n <= 81:
  for prime in primesand10:
    if n%prime == 0:
      yes = False
      break
else:
  yes = False

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

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

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

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

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

flag = 0
for i  in range(81):
    a, b = i//9+1, i%9+1
    if a * b == n:
        flag = 1

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

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

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

arr1 = list(range(1, 10))
arr2 = list(range(1, 10))

arr3 = []
for i in arr1:
    for j in arr2:
        arr3.append(i*j)

if a in arr3:
    print('Yes')
else:
    print('No')

Solution (Python):


n = int(input())

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

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

Solution (Python):


N = int(input())

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

print('No')

Solution (Python):

n = int(input())
flag = 'No'

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

print(flag)

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

ch  = 0

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

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

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

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

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

for i in range(1,10):
  for j in range(1,10):
    if i*j==N and i<10 and j<10:
      cnt=1
      break
    else:
      continue
if cnt==1:
  print('Yes')
else:
  print('No')

Solution (Python):
def p_a():
    A, B = map(int, input().split())
    print(A * B if A < 10 and B < 10 else -1)


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


def p_c():
    pass


def p_d():
    pass


def p_e():
    pass


def p_f():
    pass


if __name__ == '__main__':
    p_b()

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")
  return

main()

Solution (Python):


a = int(input())

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

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

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

Solution (Python):


MOD = 10 ** 9 + 7

n = int(input())
yes_num = [i * j for j in range(1, 10) for i in range(1, 10)]
ans = 'Yes' if n in yes_num else 'No'

print(ans)

Solution (Python):
X=list(range(1,10))
Y={i*j for i in X for j in X}
if int(input()) in Y:
  print("Yes")
else:
  print("No")

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

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

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

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

Solution (Python):
l = [i+1 for i in range(9)]

N = int(input())

end = 0

for i in range(9):
    if N % l[i] == 0:
        q = N / l[i]
        if 0 < q < 10:
            print('Yes')
            end = 1
            break

if not end:
    print('No')

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

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):
from heapq import heappush, heappop
from collections import deque
import re
import math
import functools

def sRaw():
    return input().rstrip("\r")

def iRaw():
    return int(input())


def ssRaw():
    return input().split()


def isRaw():
    return list(map(int, ssRaw()))

INF = 1 << 29


def make1d_arr(n, val=INF):
    return [val for i in range(n)]


def make2d_arr(h, w, val=INF):
    return [[val for i in range(w)]for i in range(h)]


def gcd(a, b):
    if(b == 0):
        return a
    return gcd(b, a % b)


def BFord(n,es):
    v_cost = [INF]*n
    v_cost[0] = 0
    for v in range(n*2):
        for e in es:
            frm = e[0]
            to = e[1]
            if v_cost[to] > v_cost[frm]+e[2]:
                v_cost[to] = v_cost[frm]+e[2]
                if v >= n:
                    v_cost[to] = -INF
        if v == n-1:
            prev = v_cost[:]
    v_cost = [-INF if prev[idx]!=v_cost[idx] else v_cost[idx] for idx in range(n)]
    return v_cost
    
def ZAlgo(s):
    l = len(s)
    A = [0]*l
    i =1
    j =0
    A[0]=l
    while i<l:
        while i+j<l and s[j] == s[i+j]:
            j+=1
        if j==0:
            i+=1
            continue
        A[i]=j
        k=1
        while (i+k<l) and (k+A[k]<j):
            A[i+k] =A[k]
            k+=1
        i+=k
        j-=k
    return A


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

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

Solution (Python):
import math

ans = "No"

n = int(input())
for i in range(1, int(math.sqrt(n) + 1)):
    if n % i == 0 and n // i <= 9:
        ans = "Yes"
        break

print(ans)

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

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

Solution (Python):

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

N = int(input())
divs = make_divisors(N)
for i in range(len(divs)):
    if divs[i] < 10 and N / divs[i] < 10:
        print("Yes")
        exit(0)
print("No")

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

for i in range(9,0,-1):
    (div, mod) = divmod(n, i)
    if 0 < div < 10 and mod == 0:
        print('Yes')
        break
else:
    print('No')

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

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

Solution (Python):
N=int(input())
flag=0
for i in range(9):
    for j in range(9):
        if (i+1)*(j+1)==N:
            flag=1

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

Solution (Python):
N = int(input())
t = False
for i in range(1,10):
    for j in range(1, 10):
        if i*j == N:
            t = True
if t == True:
    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")
        break
else:
    print("No")

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

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

for i in range(1,10):
    for j in range(1,10):
        if n == i*j:
            print('Yes')
            break
    else:
        continue
    break
else:
    print('No')

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


if __name__ == "__main__":
    main()

Solution (Python):
n = int(input())
result = 'No'
i = 1

while i*i <= n:
    if n%i == 0 and 1<= n/i <= 9:
        result = 'Yes'
        break
    i += 1

print(result)

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

if a>81:
  print("No")
else:
  c = 1
  for i in range(9):
    b = a/(9-i)
    
    if b.is_integer()==True and b<10:
      c = 0
    else:
      c = c*1
  if c==0:
    print("Yes")
  else:
    print("No")

Solution (Python):
import sys

N =int(input())

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

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

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

if frag:
  print("Yes")
else:
  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):
import itertools
import os
import sys

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(2147483647)
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7

N = int(sys.stdin.readline())
ok = False
for i, j in itertools.product(range(10), range(10)):
    ok |= i * j == N

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

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

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

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

re = set(re)

if input in re:
    print('Yes')
else:
    print('No')

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

for i in range(9):
  for j in range(9):
    if (i+1)*(j+1) == a:
      flag = 1

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

Solution (Python):
n=int(input())
flag=0
for i in range(9):
  nn=n/(i+1)
  if(nn<10 and (nn.is_integer())):
    flag=1
    break
if(flag):
  print("Yes")
else:
  print("No")

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

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

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

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

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

Solution (Python):
s = input().split() 
ans = 'No'
for i in range(1,10):
    for j in range(1,10):
        num = i * j
        if int(s[0]) == num:
            ans = 'Yes'
            break
print(ans)

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

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

set81 = set(list81)

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

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

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

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

Solution (Python):
num = int(input())
lst = list(range(1, 10))
count = 0
for i in lst:
    if num / i in lst:
        count += 1
if count > 0:
    print('Yes')
else:
    print('No')

Solution (Python):
n=int(input())
flag=0
for i in range(1,10):
  if n%i == 0 and n/i<10:
    flag = 1
print("YNeos"[flag!=1::2])

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

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

Solution (Python):
a = int(input())
for i in [1,2,3,4,5,6,7,8,9]:
  if len(str(a//i)) == 1 and a%i == 0:
    print("Yes")
    break
  else:
    if i == 9:
      print("No")

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

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

key = True
for i in range(1, 10):
  for j in range(1, 10):
    if(a == i * j and key):
      print('Yes')
      key = False
if(key):
  print('No')

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

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

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

Solution (Python):
N=int(input())
judge=0
for i in range(1,10):
  if N%i==0 and N/i<=9:
    print("Yes")
    judge=1
    break
if(judge==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):
n = int(input())
all = set([i * j for i in range(1, 10) for j in range(1, 10)])
if n in all:
  print("Yes")
else:
  print("No")

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

N = int(input())

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