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())
a = []
for i in range(10)[1:]:
    for j in range(10)[1:]:
        if not i * j in a:
            a.append(i * j)
 
if n in a:
    print('Yes')
else:
    print('No')

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

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

Solution (Python):
qqtable =[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]

n = int(input())
if n in qqtable:
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())
nn_list = []
for i1 in range(1,10):
  for i2 in range(1,10):
    nn_list.append(i1 * i2)
if n in nn_list:
  print('Yes')
else:
  print('No')

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

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

list=[]

for i in range(1,10):
    if N%i==0 and N//i<=9:
        list.append(i)

if list==[]:
    print('No')
else:
    print('Yes')

Solution (Python):
product = {}
for i in range(1, 10):
    for j in range(1, 10):
        product[i * j] = True

N = int(input())

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

Solution (Python):
kuku = []

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

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

Solution (Python):
ans = [a*b for a in range(1, 10) for b in range(1, 10)]
N = int(input())

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

Solution (Python):
import sys




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

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

print("No")

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

n = []
for i in range(10):
    if i > 0:
        for t in range(10):
            if t > 0:
                p = i * t
                n.append(p)
if N in n:
    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())
for i in range(1,10):
  for j in range(1,10):
    if i*j == n:
      print('Yes')
      exit()
print('No')

Solution (Python):
a = int(input())
ans = "No"
if (a<1) or (a>81):
    ans = "No"
else:
    for i in range(1,10):
        for j in range(1,10):
            if (i*j) == a:
                ans = "Yes" 
                break
print(ans)

Solution (Python):

n=int(input())
i=9
while i>0:
    if n%i==0:
        print("YNeos"[n//i>9::2])
        exit()
    i-=1
print("No")

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

for i in range(1,10):
  if N % i == 0:
    if int(N / i) in [1,2,3,4,5,6,7,8,9]:
      print("Yes")
      exit()
print("No")

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

flag =0

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

print('Yes' if flag >0 else 'No')

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

l1 = [x for x in range(10)]
l2 = [x for x in range(10)]

for v1, v2 in itertools.product(l1, l2):
    if v1*v2 == n:
        print("Yes")
        exit(0)

print("No")

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

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

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

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

Solution (Python):


import itertools


def get_input() -> int:
    """
    標準入力を取得.

    Returns:\n
        int: 標準入力
    """
    N = int(input())
    return N


def main(N: int) -> None:
    """
    メイン処理.

    Args:\n
        N (int): 整数（1<=N<=100）
    """
    
    ans = "No"
    for i, j in itertools.product(range(1, 10), range(1, 10)):
        n = i * j
        if n == N:
            ans = "Yes"
            break

    
    print(ans)


if __name__ == "__main__":
    
    N = get_input()

    
    main(N)

Solution (Python):


import itertools


N = int(input())


ans = "No"
for i, j in itertools.product(range(1, 10), range(1, 10)):
    n = i * j
    if n == N:
        ans = "Yes"
        break


print(ans)

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

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

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

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

Solution (Python):
n = int(input())
print("Yes" if sum([n == x * y for x in range(1, 10) for y in range(1, 10)]) else "No")

Solution (Python):
n = int(input())
print("Yes" if any([n == x * y for x in range(1, 10) for y in range(1, 10)]) else "No")

Solution (Python):
n = int(input())
print("Yes" if any(n == x * y for x in range(1, 10) for y in range(1, 10)) else "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
    else:
        continue
    break
print(ans)

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


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

    print('No')
    return


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

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

for i in range(9):
  a = N // (i + 1)
  if N==a * (i + 1) and 1<=a and a<=9:
    print('Yes')
    break
else:
  print('No')

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

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

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

for i in range(2, 10):
  if N % i == 0:
    if 1 <= N // i < 10:
      ans = True
      break;
  elif N == 1:
    ans = True
    break;
    
if ans:
  print('Yes')
else:
  print('No')

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')
                exit()
    else:
        print('No')
         
if __name__ == '__main__':
    main()

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

Solution (Python):
N = int(input())
Flag = False
if 1<=N<=9:
    print('Yes')
else:
    if N%2==0:
        for T in range(2,10,2):
            if N%T==0 and 1<=N//T<=9:
                Flag = True
                break
    else:
        for T in range(3,10,2):
            if N%T==0 and 1<=N//T<=9:
                Flag = True
                break
    if Flag:
        print('Yes')
    else:
        print('No')

Solution (Python):
N = int(input())
Flag = False
for T in range(1,10):
    if N%T==0 and 1<=N//T<=9:
        Flag = True
        break
if Flag:
    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

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

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

for i in range(1,10):
    a=N//i
    if a*i==N and a<=9:
        print('Yes')
        exit()
    else:
        pass

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())
flag = 0
for i in range(10):
    for j in range(10):
        if i * j == N:
            flag = 1
            break
    if flag == 1:
        break
if flag ==1:
    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):
import sys    
import os     
import math


n = int(input())





ans="No"

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


print(ans)

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

Solution (Python):

N=int(input())
c=0
for i in range(1,10):
  for m in range(1,10):
    if N==i*m:
      c+=1
if c==0:
  print("No")
else:
  print("Yes")

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

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

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

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

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

Solution (Python):
n=int(input())
num1=[1,2,3,4,5,6,7,8,9]
num2=[1,2,3,4,5,6,7,8,9]
for l in num1:
    for m in num2:
        if n==l*m:
            print("Yes")
            exit()
print("No")

Solution (Python):
n=int(input())
ln=[1,2,3,4,5,6,7,8,9]
ls=[]
for i in ln:
  for j in ln:
    ls.append(i*j)

if n in ls:
  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):
num = int(input())
val = 0
 
if num >= 82:
    print("No")
else:
    for i in range(1 , 10):
        val = num // i
        if num == val*i and val <= 9:
            print("Yes")
            break
        elif i == 9:
            print("No")

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

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

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

Solution (Python):
n = int(input())
ans = str("No")
for i in range(1, n+1):
    if (n%i==0):
        if i < 10 and n//i < 10:
            ans = ans.replace(ans, "Yes")
            break
print(ans)

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

  if n > 81: 
    print("No")
    return 0

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

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

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

Solution (Python):
n=int(input())
list=[1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9]
def pair(parameter):
        pairedList = []
        for iterater1 in range(len(parameter)):
                for iterater2 in range(iterater1+1,len(parameter)):
                        pairedList.append([parameter[iterater1],parameter[iterater2]])
        return pairedList

pairings = pair(list)
count=0
mul=[]
for i in pairings:
    x=i[0]*i[1]
    mul.append(x)
if n in mul:
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())
f = False
for i in range(1, 10):
    a, b = divmod(n, i)
    if ( 1 <= a <= 9 ) and b == 0:
        f = True
        break        

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

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

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

if mp == False:
    print("No")
else:
    print("Yes")

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

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

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

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

Solution (Python):
n = int(input())
dic = {}
for i in range(1,10):
  for j in range(1,10):
    dic[i*j]=1

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

Solution (Python):
import sys

def I(): return int(sys.stdin.readline().rstrip())

N = I()

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

print('No')

Solution (Python):
import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))  
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))  
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())  
def LS2(): return list(sys.stdin.readline().rstrip())  

N = I()

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

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

if n >= 82:
    print("No")
else:
    for i in range(1 , 10):
        ans = n // i
        if n == ans*i and ans <= 9:
            print("Yes")
            break
        elif i == 9:
            print("No")

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

Solution (Python):
N=int(input())
ls1=[1,2,3,4,5,6,7,8,9]
empty=[]
for i in ls1:
    for j in ls1:
        empty.append(i*j)
print('Yes' if N in empty else '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):
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())
for i in range(1,10):
  if n % i ==0 and n / i <10:
    print("Yes")
    break
else:
  print("No")

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

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

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):
def is_product_of_two_number(n):
    for i in range(1, 10):
        for j in range(1, 10):
            if i * j == n:
                return 'Yes'
    return 'No'

N = int(input())
result = is_product_of_two_number(N)
print(result)

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

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

Solution (Python):
n = int(input())
def ok(x):
    for i in range(1,10):
        for j in range(1,10):
            if i*j==x:
                return True
                break

if ok(n)==True:
    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):
import sys
input = lambda: sys.stdin.readline().rstrip()

def main():
    n = int(input())
    b = [i for i in range(1,10)]
    for a in range(1,10):
        if n % a == 0 and n // a in b:
            print('Yes')
            return
    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 i * j == n:
                print('Yes')
                exit(0)

    print('No')


if __name__ == '__main__':
    main()

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

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

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):
import os, sys, re, math

N = int(input())

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

print(answer)

Solution (Python):
n = int(input())
flg = False
for i in range(1, 10):
	if n / i == int(n / i) and n / i < 10:
		flg = True
		break
if flg:
	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())
ans = 'No'
for i in range(1, 10):
  if n % i == 0 and n // i < 10:
    ans = 'Yes'
print(ans)

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

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

Solution (Python):
import math
import sys
from collections import deque
import heapq
import copy
import itertools
from itertools import permutations
def mi() : return map(int,sys.stdin.readline().split())
def ii() : return int(sys.stdin.readline().rstrip())
def i() : return sys.stdin.readline().rstrip()
a=ii()
for i in range(1,10):
  for j in range(i,10):
    if i*j==a:
      print('Yes')
      sys.exit()
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
      
print('Yes') if f else print('No')

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

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

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

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

Solution (Python):
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):
def solve():
    n = int(input())
    for i in range(1, 10):
        if n % i == 0 and n // i < 10:
            print('Yes')
            exit()
    print('No')



if __name__ == '__main__':
    solve()

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

print(ans)

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

print('No')

Solution (Python):
n = int(input())
a = set()
for i in range(1,10):
    for j in range(1,10):
        a.add(i*j)

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

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

import sys
from sys import stdin

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

for i in range(1, 10):
  for j in range(1, 10):
    if N == i * j:
      print('Yes')
      sys.exit(0)
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())
a = []
for i in range(10)[1:]:
    for j in range(10)[1:]:
        if not i * j in a:
            a.append(i * j)

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

Solution (Python):
import sys
from itertools import combinations
import math


def I(): return int(sys.stdin.readline().rstrip())


def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))


def S(): return sys.stdin.readline().rstrip()


def LS(): return list(sys.stdin.readline().rstrip().split())


N = I()

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

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

print(c)

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

print(c)

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())
ans='No'
for i in range(1,10):
  if n%i==0:
    if 1<=n//i<=9:
      ans='Yes'
      break
print(ans)

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


flug = False

for i in range(9):
  pe = n%(i+1)
  if pe == 0:
    res = n/(i+1)
    
    if res<10:
      flug = True
      break
 

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

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

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

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

for i in range(0,10):
    for j in range(0,10):
        if N == i * j:
            ans = 'Yes'
            break
    else:
        continue
    break
print(ans)

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

print('No')

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

Solution (Python):
n=input()

ans='No'

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

print(ans)

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

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

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

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

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

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

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

for i in range(1, 10):
    for j in range(1, 10):
        m = i * j
        if n == m:
            f = 1
            break

print(['No', 'Yes'][f])

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

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

if N > 81 or N == 50 or N == 60 or N == 70 or N == 80:
    print('No')
    sys.exit()
else:
    val = []
    i = 3
    while N != 1:
        if N % 2 == 0:
            val.append(2)
            N //= 2
        else:
            if i >= 10:
                print('No')
                sys.exit()
            elif N % i == 0:
                val.append(i)
                N //= i
            else:
                i += 2

print('Yes')

Solution (Python):
def resolve():
    import sys
    input = sys.stdin.readline
    
    n = int(input())
    
    
    
    
    
    
    
    

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

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

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

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

if Li.count(N) > 0:
    print("Yes")
else:
    print("No")

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

Solution (Python):
n=int(input())
if n>81:
    print('No')
else:
    mod=(1,2,3,4,5,6,7,8,9)
    for i in mod:
        if n%i==0 and n//i<=9:
            print('Yes')
            break
        else:
            if i==9:
                print('No')
                break
            else:
                continue

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

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

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

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

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

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


for i in range(1,10):
    for h in range(1,10):

        if n == i * h:
            result = True
            break


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

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

Solution (Python):
def main():
    N = int(input())
    num_mal = []

    for i in range(9):
        for j in range(9):
            num_mal.append((i + 1) * (j + 1))

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


if __name__ == "__main__":
    main()

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

Solution (Python):
def readinput():
    n = int(input())
    return n

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

if __name__=='__main__':
    n=readinput()
    ans=main(n)
    print(ans)

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

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

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

flag = 0
for i in range(1,10,1):
  if N % i == 0 and int(N/i) < 10:
    flag = 1
    break

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