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

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

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

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

Solution (Python):

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

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

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

if flag == 0:
    print('No')

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

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

Solution (Python):
data = set()
for i in range(1,10):
    for j in range(1,10):
        data.add(i*j)
if int(input()) in data:
    print("Yes")
else:
    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
        break
    if ans==1:
      break
  if ans==1:
    print("Yes")
  else:
    print("No")

main()

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

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

Solution (Python):


def main():

    N = int(input())

    case = []

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

    if N in case:
        ans = 'Yes'

    else:
        ans = 'No'

    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):






k = int(input())

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

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

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

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

Solution (Python):
import sys
N=int(input())
for i in range(1,10):
    for j in range(1,10):
        if i*j==N:
            print('Yes')
            sys.exit()
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())
bol = 0
for i in range(1,10):
  for j in range(1,10):
    if i*j == n:
      bol = 1
      break
if bol == 1:
  print("Yes")
else:
  print("No")

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

kuku = []

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

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

Solution (Python):
n=int(input())
a=[]

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

Solution (Python):
l = []
for i in range(1, 10):
  for ii in range(1,10):
    a = i*ii
    l.append(a)

n = int(input())
if n in l:
  print('Yes')
else:
  print('No')

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

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

Solution (Python):
n = int(input())
is_yes = False
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            is_yes = True

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

Solution (Python):














































global FLAG_LOG
FLAG_LOG = False


def log(value):
    
    
    if FLAG_LOG:
        print(str(value))


def calculation(lines):
    
    N = int(lines[0])
    
    
    
    
    
    
    
    
    

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

    if N in lst:
        result = 'Yes'
    else:
        result = 'No'

    return [result]



def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines



def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['10']
        lines_export = ['Yes']
    if pattern == 2:
        lines_input = ['50']
        lines_export = ['No']
    if pattern == 3:
        lines_input = ['81']
        lines_export = ['Yes']
    return lines_input, lines_export



def get_mode():
    import sys
    args = sys.argv
    global FLAG_LOG
    if len(args) == 1:
        mode = 0
        FLAG_LOG = False
    else:
        mode = int(args[1])
        FLAG_LOG = True
    return mode



def main():
    import time
    started = time.time()
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(1)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    
    
    
    
    
    
    
    
    
    
    



if __name__ == '__main__':
    main()

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

flag = False
for i in range(9, 0, -1):
    q, r = divmod(N, i)
    if r == 0 and q < 10:
        flag = True
            
if flag:
    print('Yes')
else :
    print('No')

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

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

Solution (Python):
from sys import exit
def main():
  N = int(input())
  
  for i in range(9,0,-1):
    if N % i == 0 and N / i < 10:
      print('Yes')
      exit()
    
  print('No')
    
  
  
  
main()

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

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

ans = False

for j in range(1,10):
    for k in range(1,10):
        if j*k == n:
            ans = True
            break
    if ans:
        break

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

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

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

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

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

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

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

Solution (Python):
import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")


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




for i in range(1,10):
    q, mod = divmod(n,i)
    if mod == 0:
        if (q >= 1 and q <= 9):
            print("Yes")
            exit()
print("No")

Solution (Python):
n = int(input())
s = set(filter(lambda x : n % x == 0 and n / x < 10, [x for x in range(1, 10)]))
print("No" if len(s) == 0 else "Yes")

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

def solve(n: int) -> str:
  for l in range(1, 10):
    for m in range(1, 10):
      if n == l * m:
        return "Yes"
  return "No"
  
print(solve(n))

Solution (Python):
N = int(input())
res = False
for i in range(1,10):
  for j in range(1,10):
    if i*j == N:
      res = True
      break
  if res:
    break

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

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

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

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

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

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

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

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

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

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

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

if '__main__' == __name__:
    resolve()

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

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

ans = 'No'
for i in range(1,10):
    if N%i == 0:
        tmp = str(int(N/i))
        if len(tmp) >= 2:
            continue
        else:
            ans = 'Yes'
            break
    else:
        continue
print(ans)

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

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

print('No')

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

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

for i in range(1, 10):
    tmp = (n / i)
    if tmp.is_integer() and 1<=tmp and tmp <=9:
        print("Yes")
        exit()
print("No")

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

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

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

print("No")

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

data = list()

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

if num in data:
    print('Yes')
else:
    print('No')

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

for a in range(1, 10): 
	b = n // a
	if a * b == n and b >= 1 and b < 10:
		print("Yes")
		quit()

print("No")

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

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

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

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

Solution (Python):
import sys
N = int(input())
array = [ I for I in range(1,10) ]

if not ( 1 <= N <= 100 ): sys.exit()

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

Solution (Python):
import sys
N = int(input())
array = [ I for I in range(1,10) ]

if not ( 1 <= N <= 100 ): sys.exit()

if N >= 82:
    print('No'); sys.exit()
else:
    for J in array:
        if (N % J) == 0 and (N // J) <= 9 : print('Yes'); sys.exit()
print('No')

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

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

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

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

for i in range(1,10):
    for j in range(1,10):
        if n == i*j:
            count += 1

        else:
            pass
print(['No','Yes'][count != 0])

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

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

Solution (Python):
N = int(input())
Suji_check = False
for s in range(1,10):
  for t in range(1,10):
    if s*t == N:
      Suji_check = True
      break
if Suji_check:
  print('Yes')
else:
  print('No')

Solution (Python):
def main():
    N = int(input())
    l = [2, 3, 4, 5, 6, 7, 8, 9]
    if N == 1:
        print('Yes')
        return
    for i in range(8):
        c = N // l[i]
        r = N % l[i]
        if c > 0 and c < 10 and r == 0:
            print('Yes')
            return
    print('No')
main()

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

if n in L:
    print('Yes')
if n not in L:
    print('No')

Solution (Python):
def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

n = i()

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

Solution (Python):
N = 0;
i = 0;
tmp = 0;
ans = 0;

N = int(input());

for i in range(1,10,1):
    if N%i!=0:
        continue;
    tmp = N/i;
    
    if tmp<=9 and tmp>=1:
        ans+=1;

if ans>0:
    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())
t_list = []

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

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

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

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

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

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

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

    start = 1
    end = 9
    ans = 'No'

    
    for i in range(start, end + 1):
        for j in range(start, end + 1):
            if n == i * j:
                ans = 'Yes'
                break
    print(ans)


if __name__ == '__main__':
    abc144b()

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

    start = 1
    end = 9
    flag = False

    
    for i in range(start, end + 1):
        for j in range(start, end + 1):
            if n == i * j:
                flag = True
                break

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

if __name__ == '__main__':
    abc144b()

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

    start = 1
    end = 9
    flag = False

    
    for i in range(start, end + 1):
        for j in range(start, end + 1):
            if n == i * j:
                flag = True
                break

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

if __name__ == '__main__':
    abc144b()

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

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

ok=False

for i in range(1,10):
    for j in range(1,10):
        if i*j==n:
            ok=True
if ok:
    print("Yes")
else:
    print("No")

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

Solution (Python):
N = int(input())
ans = 'No'

for i in range(1, 10):
    if ans == 'Yes':
        break

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

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

for x in range(1,10):
    for y in range(1,10):
        if n == x * y:
            z += 1

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

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())
A="No"
for i in range(1,10):
  for j in range(1,10):
    if i*j==N:
      A="Yes"
print(A)

Solution (Python):
import sys

N = int(input())

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

Solution (Python):


N = int(input())

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

print("No")

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

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

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

for i in range(1,10):
    if n%i == 0:
        div = n/i
        if div>=1 and div<=9:
            flag = 1
            break

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

Solution (Python):
import sys

N=int(input())
for i in range(1,10):
  for j in range(1,10):
    if(i*j==N):
      print("Yes")
      sys.exit()
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())
count=0
for i in range(1,10):
  for m in range(1,10):
    if i*m==N:
      count+=1
if count>=1:
  print("Yes")
else:
  print("No")

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

Solution (Python):
N = int(input())
for i in range(1, 10):
    if N % i == 0:
        if N // i < 10:
            print('Yes')
            quit()
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(0)

print('No')

Solution (Python):
if int(input()) in (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, 42, 45, 48, 49, 54, 56, 63, 64, 72, 81):
    print('Yes')
else:
    print('No')

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

for i in range(1,10):
  for s in range(1,10):
    if i*s==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):
print('Yes' if int(input()) in [i * j for j in range(1, 10) for i in range(1, 10)] 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")
      break
  else:
    continue
  break
else:
  print("No")

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

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

Solution (Python):
def main():
    n = int(input())
    for i in range(10):
        for j in range(10):
            if i * j == n:
                print("Yes")
                return

    print("No")

if __name__ == '__main__':
    main()

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):
def resolve():
    N = int(input())
    for i in range(1, 9 + 1):
        for j in range(1, 9 + 1):
            if i * j == N:
                print('Yes')
                return
    print('No')
    return
resolve()

Solution (Python):
import sys
import time
import math
def inpl():
    return list(map(int, input().split()))
st = time.perf_counter()


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


ed = time.perf_counter()
print('time:', ed-st, file=sys.stderr)

Solution (Python):
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
count = 0
ans = 0
inf = float("inf")

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

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

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

Solution (Python):
from sys import exit

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

table = set()

for i in range(1,10):
    for j in range(1,10):
        table.add(i*j)

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

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

Solution (Python):
import sys

n=int(input())

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

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

Solution (Python):
n = int(input())
l = list(range(1, 10))

for i in l:
    if n % i == 0 and (n / i in l):
        print("Yes")
        exit(0)
print("No")

Solution (Python):
n = int(input())
l = list(range(1, 10))

for i in l:
    if n % i == 0 and (n / i in l):
        print("Yes")
        break
else:
    print("No")

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

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

Solution (Python):


import sys
input = sys.stdin.buffer.readline
sys.setrecursionlimit(10**6)
INF = float("inf")

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

xs = list(range(1,10))
xt = [(x*y) for x in xs for y in xs]

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

Solution (Python):
import sys

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

Solution (Python):
def main():
    N = int(input())
    vals = set([])
    for v1 in range(1, 10):
        for v2 in range(1, 10):
            vals.add(v1 * v2)
    if N in vals:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

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

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

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

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

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

for i in range(1, 11):
    if i == 10:
        print('No')
        break
    for j in range(1, 10):
        kuku = i * j

        if n == kuku:
            print('Yes')
            break
    else:
        continue
    break

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

Solution (Python):
from collections import defaultdict
d = defaultdict(int)

for a in range(1, 10):
    for b in range(1, 10):
        d[a*b] = 1

if d[int(input())]:
    print('Yes')
else:
    print('No')

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

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

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

print('No')