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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

a = 2
while a <= 9:
    if N % a == 0:
        if N / a <= 9:
            print('Yes')
            break
    a += 1
    if a == 10:
        print('No')

Submission status: Wrong Answer

Solution code:
a_b = int(input().rstrip("\n"))

for a in range(1,10):
  b, remain = divmod(a_b, a)
  if remain > 0:
    continue
  if 1 <= b <= 9:
    print("YES")
    break
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
am=input()
a = int(am)
flg=0
for i in range(9):
  if a % (9-i) == 0 and a / (9-i) < 10:
    print("YES")
    flg=1
    break
 
if flg==0:
  print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = input()
b = int(a)

for i in range(10):
    c = b / (i + 1)
    if i == 9:
        print("No")
    if (c.is_integer() == True) & (c < 10):
        print("Yes")
        break

Submission status: Wrong Answer

Solution code:
N = int(input())
#10に着目するか？
a = max(N/1,N/2,N/3,N/4,N/5,N/6,N/7,N/8,N/9)
if a // 1 == a and a < 10:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(0,101):
  for j in range(0,101):
    if i*j==n:
      print('Yes')
      exit()
print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

if N <= 81:
    for i in range(9, 1, -1):
        if N % i == 0 and N // i <10:
            flag = 1
            break
if flag == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

Solution code:
def f(n):
  for i in range(1, 10):
    if i > n:
      return "No"
    else:
      if n%i == 0 and 0 < n//i < 10:
        return "Yes"
      else:
        continue
    
print(f(int(input())))

Submission status: Wrong Answer

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

for i in range(1, 10):
    if N % i == 0:
        t =  N // i
        if 0 < i < 10:
            ans = "Yes"

print(ans)

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
a=0
for i in range(1,10):
    for j in range(1,19):
        if n==i*j:
            a+=1
if a==0:
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
n=int(input())
a=0
for i in range(1,9):
    for j in range(1,9):
        if n==i*j:
            a+=1
if a==0:
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
A=[i*j for i in range(1,10) for j in range(1,10)]
B=int(input())
if B in A:
    print("yes")
elif B not in A:
    print("no")

Submission status: Wrong Answer

Solution code:
x = int(input())
flag = 0
if x < 10:
    print("Yes")
for l in range(1,10,1):
    num =x/l
    mod = x % l
    if num < 10 and mod == 0:
        flag =1
        break
if flag == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
x = int(input())
flag = 0
if x < 10:
    print("Yes")
for l in range(1,x,1):
    num =x/l
    if num < 10:
        flag =1
        break
if flag == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

def f():
    for i in range(2, int(N**(1/2))+2):
        if N%i == 0 and all(1 <= x <= 9 for x in [i, N//i]):
            return "Yes"
    return "No"

print(f())

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())
number = [1,2,3,4,5,6,7,8,9]
for A in number :
  if N / A < 10 and N % A == 0 :
    print("Yes")
  
  else :
    print("No")

Submission status: Wrong Answer

Solution code:
import numpy as np

N = int(input())

x   = np.arange(1,10).reshape(1,9)
lst = np.dot(x.T, x).reshape(1, 81)

print(True) if N in lst else print(False)

Submission status: Wrong Answer

Solution code:
N = int(input())
number = [1,2,3,4,5,6,7,8,9,10]
for A in number :
  if N / A < 10 and N % A == 0 :
    print("Yes")
  
  else :
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
pn = [11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97]
print('YNeos'[((n>49)&(n%10==0))or(n in pn)::2])

Submission status: Wrong Answer

Solution code:
N=int(input())
for i in range(8):
  if N % (i+1) == 0:
    if N / (i+1) <= 9:
      print("yes")
  elif i == 8:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
pn = [11,13,17,19,23,29,31,37,41,43,53,59,61,67,71,73,79,83,89,97]
print('YNeos'[((n>49)&(n%10==0))or(n in pn)::2])

Submission status: Wrong Answer

Solution code:
N=int(input())
for i in range(9):
  if N % (i+1) == 0:
    print("Yes")
  elif i == 8:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
print('YNeos'[(n>49)&(n%10==0)::2])

Submission status: Wrong Answer

Solution code:
N=int(input())
if N >81:
  print("No")
if N==81:
  print("Yes")
else:
  for i in range(1,9):
    a=N/i
    b=(a.is_integer())
    if a<10 and b==True:
      print("Yes")
      break
  else:
    for i in range(1,9):
      c=N/i
      d=(c.is_integer())
      if d==False:
        print("No")
        break

Submission status: Wrong Answer

Solution code:
N=int(input())
if N >81:
  print("No")
else:
  for i in range(1,9):
    a=N/i
    b=(a.is_integer())
    if a<10 and b==True:
      print("Yes")
      break
  else:
    for i in range(1,9):
      c=N/i
      d=(c.is_integer())
      if d==False:
        print("No")
        break

Submission status: Wrong Answer

Solution code:
N=int(input())
if N >81:
  print("No")
else:
  for i in range(1,9):
    a=N/i
    b=(a.is_integer())
    if a<10 and b==True:
      print("Yes")
      break
  for i in range(1,9):
    c=N/i
    d=(c.is_integer())
    if d==False:
      print("No")
      break

Submission status: Wrong Answer

Solution code:
N=int(input())
if N >81:
  print("No")
elif N <=81:
  for i in range(1,10):
    a=N/i
    b=N/i
    a=(isinstance(i, int))
    if a == True and b < 10:
      print("Yes")
      break
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())
if N >81:
  print("No")
else:
  for i in range(1,9):
    a=N/i
    b=N/i
    a=(isinstance(i, int))
    if a == True and b < 10:
      print("Yes")
      break
    else:
      print("No")
      break

Submission status: Wrong Answer

Solution code:
N = int(input())
cnt = 0
for i in range(1,9):
    mod = N%i
    if mod<10:
        cnt = cnt+1
        #print(mod)
    else:
        cnt = cnt+0
if cnt>=1:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
N = int(input())
cnt = 0
for i in range(1,9):
    mod = N%i
    if mod<10:
        cnt = cnt+1
    else:
        cnt = cnt+0
if cnt>0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
A=(1,2,3,4,5,6,7,8,9)
B=(1,2,3,4,5,6,7,8,9)
count=0
for a in A:
  for b in B:
    if N/a*b == 1 and N%a*b==0:
      count=count+1
if count==1:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

for i in range(9):
  for j in range(9):
    if (i+1)*(j+1) == n:
      print("Yes")

print("No")

Submission status: Wrong Answer

Solution code:
data=int(input())
count=0
 
for i in range(10):
  c=data%(i+1)
  if c==0:
    a=data
    b=data//(i+1)
    if a<=9 and b<=9 :
      count+=1
if count>=1:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
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 == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
x = int(input())

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

if a == 0:
    print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())

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

Submission status: Wrong Answer

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

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

possible = reduce(lambda acc, x: acc or
                  (x[1] == 0 and x[0] <= 9),
                  div_rem, False)

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

Submission status: Wrong Answer

Solution code:
N=int(input())

prime=[]
for i in range(0,101):
    for j in range(2,10):
        P=i%j
        if P==0:
            prime.append(i)
if N in prime:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
if N>9*9:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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
if not f:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())
i=1
end=0
while(i<=9):
    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')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x=int(input())
co=0
if 1<=x<=9:
  print("Yes")
elif x>89:
  print("No")
else:
  for i in range(1,9):
    if x%i==0 and x//i<=9:
      co+=1
if co>0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(len(A)):
  if A[i] == N:
    print("Yes")
  else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
m = []

for x in range(1, 9):
  for y in range(1, 9):
    m.append(x*y)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
for i in range(1, N + 1):
  if (N % i == 0):
      N = N // i
      break
else:
  print('No')
  exit()

for i in range(1, N + 1):
  if (N % i == 0):
    print('Yes')
    exit()
else:
  print('No')
  exit()

Submission status: Wrong Answer

Solution code:
N=int(input())
 
if N/9 < 10 or N/8 < 10 or N/7 <10 or N/6 < 10 or N/5 < 10 or N/4 < 10 or N/3 < 10 or N/2 < 10 or N < 10 :
  print("Yes")
else :
  print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

if N/9 < 10 or N/8 < 10 or N/7 <10 or N/6 < 10 or N/5 < 10 or N/4 < 10 or N/3 < 10 or N/2 < 10 or N < 10 :
  print("Yes")
else :
  print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

if N/9 < 10 or N/8 < 10 or N/7 <10 or N/6 < 10 or N/5 < 10 or N/4 < 10 or N/3 < 10 or N/2 < 10 or N < 10 :
  print("Yes")
else :
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

resolve()

Submission status: Wrong Answer

Solution code:
N=int(input())
for num in range(1,10):
    for num2 in range(1,10):
        if N==num*num2:
            print('Yes')
    break
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

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

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

Submission status: Wrong Answer

Solution code:
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 <= 81:
  for prime in primesand10:
    if n%prime == 0:
      yes = False
      break
else:
  yes = False
  
if yes:print("Yes")
else: print("No")

Submission status: Wrong Answer

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

print(arr3)

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

Submission status: Wrong Answer

Solution code:
n = int(input())

ch  = 0

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# -*- coding:utf-8 -*-
#入力
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("N0")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

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

Submission status: Wrong Answer

Solution code:
# -*- coding utf-8 -*-

MOD = 10 ** 9 + 7

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

for i, b in enumerate(range(1, 10)):
  a = int(n / int(b))
  if (a>0) & (a<10):
    print('Yes')
    break
  if i == 8:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

for i, b in enumerate(range(1, 10)):
  a = n / int(b)
  if (a>0) & (a<10):
    print('Yes')
    break
  if i == 9:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

for i, b in enumerate(range(1, 10)):
  a = int(n / int(b))
  if (a>0) & (a<10):
    print('Yes')
    break
  if i == 9:
    print('No')

Submission status: Wrong Answer

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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
a = 1

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

Submission status: Wrong Answer

Solution code:
a = int (input())  

if a>81:
  print("No")
else:
  c = 1
  for i in range(7):
    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")

Submission status: Wrong Answer

Solution code:
a = int (input())  
c = 1
if a>81:
  print("No")
else:

  for i in range(7):
    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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(8):
  if a % (i+2) == 0 and a / (i+2) < 10 and a > 1:
    flag = 1

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

Submission status: Wrong Answer

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

for i in range(8):
  if a % (i+2) == 0 and a / (i+2) < 10:
    flag = 1

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

Submission status: Wrong Answer

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

for i in range(8):
  if a % (i+2) == 0 and a % (i+2) < 10:
    flag = 1

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

Submission status: Wrong Answer

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

for i in range(8):
  if a % (i+2) == 0:
    flag = 1

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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==0):
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
flag=0
for i in range(9):
  if(19960710 < n/(i+1)):
    flag=19960823

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
flag = False
for i in range(2, 9):
    if(n % i): continue
    else: flag = True
if(flag and (n/i <= 9)): print('Yes')
elif n==1: print('Yes')
else: print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
flag = False
for i in range(2, n):
    if(n % i): continue
    else: flag = True
if(flag): print('Yes')
else: print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int(input())
for i in [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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int(input())

key = True
for i in range(1, 10):
  for j in range(1, 10):
    if(a == i * j):
      print('YES')
      key = False
  if(key == False):
    break
if(key):
  print('NO')

Submission status: Wrong Answer

Solution code:
a = int(input())

key = True
for i in range(1, 10):
  for j in range(1, 10):
    if(a == i * j):
      print('YES')
      key = False
      break
if(key):
  print('NO')

Submission status: Wrong Answer

Solution code:
a = int(input())

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

Submission status: Wrong Answer

Solution code:
a = int(input())

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

Submission status: Wrong Answer

Solution code:
a = int(input())

if ((a % 9 == 0) and (a // 9 <= 9)) or ((a % 8 == 0) and (a // 8 <= 9)) or ((a % 7 == 0) and (a // 7 <= 9)) or ((a % 6 == 0) and (a // 6 <= 9)) or ((a % 5 == 0) and (a // 5 <= 9)) or ((a % 4 == 0) and (a // 4 <= 9)) or ((a % 3 == 0) and (a // 3 <= 9)) or ((a % 2 == 0) and (a // 2 <= 9)) or ((a % 1 == 0) and (a // 1 <= 9)):
   print('YES')
else:
   print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())

for i in range(1,10):
    a,b=divmod(N,i)
    if 1 <= a <= 9 and i==0:
        print('Yes')
        exit()

print('No')