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



Sample input:
10


Sample output:
Yes

Submission status: Accepted

Solution code:
n = int(input())

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

print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())
ans="No"
for i in range(1,10):
    A=N%i
    if A==0:
        B=(N/i)//10
        if B==0:
            ans="Yes"
            break
print(ans)

Submission status: Accepted

Solution code:

n = int(input())
l = []*81
for i in range(10):
     for j in range(10):
          l.append(i*j)

if n in l:
     print("Yes")
else:
     print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#144_B
n = int(input())
flg = False
for i in range(1, 10):
    if n % i ==0:
        if n // i < 10:
            flg = True
print('Yes' if flg else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
#input = sys.stdin.readline
from collections import Counter

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

print('No')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
n = int(input())

flag = False
for i in range(1, 10):
    if n%i == 0:
        remain = n/i
        for j in range(1, 10):
            if remain== j:
                print("Yes")
                flag =True
                break
        
        if flag:
            break
            
if not flag:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#整数の入力
A = int(input())

list_99 = []
for i in range(9):
  for j in range(9):
    list_99.append((i+1)*(j+1))
    
    
if((A in list_99) == True):
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
ok = False
for i in range(9):
    for j in range(9):
        if n == (i+1)*(j+1) :
            ok = True

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

Submission status: Accepted

Solution code:
import sys

def main():
    n = int(input())
    for i in range(1, 10, 1):
        if 1 <= n//i <= 9 and (n/i).is_integer():
            print('Yes')
            sys.exit()
    print('No')
    
main()

Submission status: Accepted

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

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

print("Yes" if count > 0 else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

N = int(input())

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

Submission status: Accepted

Solution code:
print("Yes" if int(input()) in {x*y for x in range(10) for y in range(10)} else "No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print("No")

Submission status: Accepted

Solution code:
N = int(input())

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

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
import sys

n = int(input())

if n > 81:
	print('No')
	sys.exit()
if n < 10:
	print('Yes')
	sys.exit()

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

for i in range(1, 10):
    for j in range(1, 10):
        if N==i*j:
            cnt+=1

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

Submission status: Accepted

Solution code:
Lists=[]

for i in range(9):
    for j in range(9):
        Lists.append((i+1)*(j+1))
        
N=int(input())
print("Yes" if (Lists.count(N)>0) else "No" )

Submission status: Accepted

Solution code:
n=int(input())

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

Submission status: Accepted

Solution code:
N = int(input())
count = 0
if N > 81:
  print("No")
elif 9 >= N >= 1:
  print("Yes")
else:
  for i in range(2, 10):
    if (N % i == 0) and (N/i <=9):
      print("Yes")
      count += 1
      break
  if count == 0:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
s=0
for a in range(1,10):
  for b in range(1,10):
    if a*b==n:
      print('Yes')
      s+=1
      break
  else:
    continue
  break
if s==0:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
s = list(range(1,10))
a = 0
for i in s:
    for j in s:
        if i * j == n:
            a += 1
        else:
            a += 0

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

Submission status: Accepted

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

print(solve())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 12 01:45:52 2020

@author: Kanaru Sato
"""

n = int(input())
flag = 0

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys


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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(100000000)
input = lambda: sys.stdin.readline().rstrip()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

table = [0 for i in range(0, 102)]

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

n = int(input())

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

print('No')

Submission status: Accepted

Solution code:
def Calc(N):
    for i in range(1, 9 + 1):
        for j in range(1, 9 + 1):
            if i * j == N:
                return "Yes"
    return "No"

N = int(input())
print(Calc(N))

Submission status: Accepted

Solution code:
n = int(input())

is_81 = False
for i in range(9):
    if n % (i+1) ==0:
        if (n / (i+1)) <= 9:
            is_81 = True

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
n=int(input())

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
n=int(input())
for i in range(2,10):
    for j in range(2, 10):
        if i*j==n or n<10:
            print("Yes")
            exit(0)
print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python
 #!/usr/bin/env 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()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
def main():
    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')

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
N = int(input())
qq = set()
for i in range(1, 10):
    for j in range(1, 10):
        qq.add(i * j)
print('YNeos'[not N in qq::2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#B
import sys
n=int(input())
x=list(range(1,10))
x1=list(range(1,10))
for i in x:
    for j in x1:
        if i*j==n:
            print("Yes")
            sys.exit()
print("No")

Submission status: Accepted

Solution code:
N = int(input())
f = False
for i in range(1,10):
    if N % i != 0:
        continue
    else:
        if N / i > 9:
            continue
        else:
            f = True
if f:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:

N = int(input())

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

Submission status: Accepted

Solution code:
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:
        break

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

Submission status: Accepted

Solution code:
n = int(input())

list99 = set()

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

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

Submission status: Accepted

Solution code:
import itertools

n = int(input())
arr = itertools.combinations_with_replacement(range(1, 10), 2)
ans = [True for a, b in arr if a * b is n]

print(["No", "Yes"][len(ans) > 0])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    r = range(1,10)
    tables = [i * j for i in r for j in r]
    i = int(input())
    print('Yes' if i in tables else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
number = int(input())
ans = 0
for i in range(1,10):
  if number%int(i) == 0:
    if number/int(i) <= 9:
      ans += 1
    else:
      pass
  else:
    pass
if ans > 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

print('No')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#B
N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

flag = False

for onerank in range(10):
    for tworank in range(10):
        if onerank * tworank == N:
            flag = True
            break
if flag == True:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
r=range(10)
print(['No','Yes'][int(input()) in {i*j for i in r for j in r}])

Submission status: Accepted

Solution code:
N = int(input())
output = "No"
x = [i+1 for i in range(9)]

for i in x:
  num = N / i
  num_int = N // i
  if num == num_int and num < 10:
    output = "Yes"
print(output)

Submission status: Accepted

Solution code:
N = int(input())
output = "No"
x = [(i+1)*(j+1) for i in range(9) for j in range(9)]

if N in x:
    output = "Yes"
print(output)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

k = []

for i in range(1, 10):
    for j in range(1, 10):
        if i <= j:
            k.append(i * j)

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
l = int(input())
for i in range(1,10):
  if l%i ==0:
    for j in range(1,10):
      if l/i/j ==1:
        print('Yes')
        exit()
print('No')

Submission status: Accepted

Solution code:
n = int(input())

l = [num for num in range(1,10)]
# print(l)
kuku=[]
for h in [[x*y for y in l] for x in l]:
    kuku.extend(h)
# print(kuku)
if n in kuku:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
import math
#a,b= map(int,input().split())
#li= [int(x) for x in input().split()]
a=int(input())
i=j=1
for i in range(10):
  for j in range(10):
    if a==i*j:
      print("Yes")
      sys.exit()

print("No")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
import itertools

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

nums = [int(x) for x in range(1, 10)]

kuku = itertools.combinations_with_replacement(nums, 2)

ans = "No"

for i in list(kuku):
    if i[0] * i[1] == n:
        ans = "Yes"
        break

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
list = []
for i in range(1, 10):
    for j in range(1, 10):
        list.append(i * j)
        #print(list)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

kuku = []

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
flg = 0
for i in range(1, 10):
    for ii in range(1, 10):
        if n == i * ii:
            print('Yes')
            exit()
print('No')

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
import sys
import os


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

    N = int(sys.stdin.readline().rstrip())
    ret = 'No'
    for i in range(10):
        if i == 0:
            continue

        q, mod = divmod(N, i)
        if q < 10 and mod == 0:
            ret = 'Yes'
            
    print(ret)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

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

Submission status: Accepted

Solution code:
#import math
#import bisect
#import numpy as np
#import itertools
#import copy
import sys

ipti = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)

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

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

    print('No')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
n = int(input())
import sys
flag = False
for i in range(1, 10):
    for j in range(1, 10):
        if n == i * j:
            print('Yes')
            quit()
print('No')

Submission status: Accepted

Solution code:
n = int(input())
flag = False
for i in range(1, 10):
    for j in range(1, 10):
        if n == i * j:
            flag = True
            #print('Yes')
            #sys.exit
#print('No')
if flag:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
import sys

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

print('No')

Submission status: Accepted

Solution code:
import sys

import numpy as np
import math, string, itertools, fractions, heapq, collections, re, array, bisect, copy, functools, random
from collections import deque, defaultdict, Counter
from heapq import heappush, heappop
from itertools import permutations, combinations, product, accumulate, groupby
from bisect import bisect_left, bisect_right, insort_left, insort_right
from operator import itemgetter as ig
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
INF = float("INF")
mod = 10 ** 9 + 7
"""dd = [(-1, 0), (0, 1), (1, 0), (0, -1)];
ddn = dd + [(-1, 1), (1, 1), (1, -1), (-1, -1)];
ddn9 = ddn + [(0, 0)]
for dx, dy in dd:
        nx = j + dx; ny = i + dy
            if 0 <= nx < w and 0 <= ny < h:"""

def wi(): return list(map(int, sys.stdin.readline().split()))
def wip(): return [int(x) - 1 for x in sys.stdin.readline().split()]  # WideIntPoint
def ws(): return sys.stdin.readline().split()
def si(): return int(sys.stdin.readline())  # SingleInt
def ss(): return input()
def hi(n): return [si() for _ in range(n)]
def hs(n): return [ss() for _ in range(n)]  # HeightString
def s_list(): return list(input())
def mi(n): return [wi() for _ in range(n)]  # MatrixInt
def mip(n): return [wip() for _ in range(n)]
def ms(n): return [ws() for _ in range(n)]
def num_grid(n): return [[int(i) for i in sys.stdin.readline().split()[0]] for _ in range(n)]  # NumberGrid
def grid(n): return [s_list() for _ in range(n)]


def main():

    flag = False
    memo = []
    n = int(input())
    for i in range(1,10):

        if flag == True:
            break
        for j in range(1,10):

            memo.append(i*j)
            if n in memo:
                print("Yes")
                flag = True
                break




    if flag==False:
        print("No")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]
N = int(input())
for n in filter(lambda x: N % x == 0, numbers):
    if int(N / n) in numbers:
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
N = int(input())
s=0
for i in range(9):
    for j in range(9):
        if N == (i+1)*(j+1):
            s=1
            break
    if s==1:break
if s==1:
    print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
N = int(input())

can = False
for n in range(1, 10):
  for m in range(1, 10):
    if (N == n * m):
      can = True

result = "Yes" if can else "No"
print(result)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

print("No")

Submission status: Accepted

Solution code:
N=int(input())
flag=False
for i in range(1,10):
    m=N/i
    if m.is_integer() and 1<=m<=9:
        flag=True
        break
print("Yes" if flag else "No")

Submission status: Accepted

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