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):
import sys
input = sys.stdin.readline

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

if __name__ == "__main__":
    main()

Solution (Python):
import sys
input = sys.stdin.readline

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


if __name__ == "__main__":
    main()

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

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

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

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

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

Solution (Python):
int_num = int(input())
takahashi_can_calculation = set()

for i_left in range(1, 10):
    for i_right in range(1, 10):
        result = i_left * i_right
        takahashi_can_calculation.add(result)

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

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

A=[x*y for x in range(1,10) for y in range(1,10)]
A=set(A)

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 1<=N/i<=9:
        print('Yes')
        break
    elif i == 9:
        print('No')

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

Solution (Python):
import sys

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


def main():
    N = int(readline())
    s = set()

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

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


if __name__ == '__main__':
    main()

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

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())
has_multiple = False
for a in range(1, 10):
    if n % a > 0:
        continue
    b = n / a
    if 0 < b < 10:
        has_multiple = True
        break

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

Solution (Python):


n = int(input())
r = False
for i in range(1,10):
  if n % i == 0:
    if n // i < 10:
      r = True
      break

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

Solution (Python):


N = int(input())

ans ='No'
for x in range(1, 10, 1):
    if (N % x) == 0:
        for y in range(x, 10, 1):
            if x * y == N:
                ans = 'Yes'
                break
    
    if ans == 'Yes':
        break

print(ans)

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

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

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

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

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

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

print('No')

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

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

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

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

n=int(input())

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

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


A = [i*j for i in range(1,10) for j in range(1,10)]
print('Yes' if I() in A else 'No')

Solution (Python):
n=int(input())
l=list()
flag=0
for i in range(1, 10):
    if n % i == 0: 
        if (n//i)<=9:
            flag+=1

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

Solution (Python):
n=int(input())
l=list()
if n<=5:
  print("Yes")
  exit()
for i in range(2, n//2+1):
    if n % i == 0: 
        if (n//i,i) not in l:
            l.append((i,n//i))
flag=0
for i in l:
    if i[0]<=9 and i[1]<=9:
        flag=1
        print("Yes")
        exit()
if not flag:
    print("No")

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())
s = set()
for i in range(1, 10):
    for j in range(1, 10):
        s.add(i*j)
if N in s:
    print('Yes')
else:
    print('No')

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

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

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

Solution (Python):
import sys

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

print("No")

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

Solution (Python):
import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
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()
A = [i*j for i in range(1,10) for j in range(1,10)]
print('Yes' if N in A else 'No')

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

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

Solution (Python):
import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
sys.setrecursionlimit(10**7)

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

def main():
    N = I()
    kuku_list = []
    for i in range(1,10):
        for j in range(1,10):
            kuku_list.append(i*j)
    print("Yes" if N in kuku_list else "No")

main()

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

if __name__ == "__main__":
  main()

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

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

for i in range(1,10):
  for j in range(1,10):
    if N == int(i)*int(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):
g = int(input("")) 
a = False
for i in range(1,10):
    if (g % i == 0 and (g // i >= 1) and (g // i <= 9)):
        a = True
print("Yes" if (a) else "No")

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

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

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

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

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

print("No")

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

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

main()

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

Solution (Python):
import sys

N = int(input())

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

print('No')

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

Solution (Python):
import sys

n = int(input())

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

print("No")

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

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

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

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

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

func()

Solution (Python):
import itertools, sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = 10**20
def I(): return int(input())
def F(): return float(input())
def S(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()

def resolve():
    N =I()

    kuku = {i * j for i, j in itertools.product(range(1, 10), repeat=2)}
    if N in kuku:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    resolve()

Solution (Python):
a = int(input())
f = False
for i in range(1,10):
    for j in range(1,10):
        if i*j == a:
            f = True
if f:
    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())
a = 0
for i in range(1,10):
    if N%i == 0 and N <= 9*i:
        print("Yes")
        a = 1
        break
if a == 0:
    print("No")

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

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

Solution (Python):
n = int(input())
result = 'No'
for i in range(1,10):
    if n / i in [1,2,3,4,5,6,7,8,9]:
        result = 'Yes'
print(result)

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

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

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

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

Solution (Python):


num = int(input())
ok = 0
for i in range(1, 10):
    for j in range(1, 10):
        if num == i * j:
            print("Yes")
            ok += 1
            exit()
if ok == 0:
    print("No")

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

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

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

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

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

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

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

Solution (Python):
n=int(input())
for i in range(9):
    for u in range(9):
        if n==(i+1)*(u+1):
            print('Yes')
            exit()
print('No')

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

Solution (Python):
n = int(input())
if n == 1:
    print("Yes")
    quit()
a = list(range(1,10))
a.reverse()
for _ in range(2):
    for i in a:
        if n % i == 0:
            if n // i == 1:
                print("Yes")
                quit()
            n = n // i
            break
print("No")

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

Solution (Python):




import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """10"""
        output = """Yes"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """50"""
        output = """No"""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """81"""
        output = """Yes"""
        self.assertIO(input, output)


def resolve():
    N = int(input())

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


if __name__ == "__main__":
    
    resolve()

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

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

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

Solution (Python):
def some():
    n = int(input())
    for i in range(9, 0, -1):
        for j in range(9, 0, -1):
            if i* j == n:
                print("Yes")
                exit()
    print("No")

some()

Solution (Python):
import itertools

N = int(input())

flag = 0

for i, j in itertools.product(range(9), repeat=2):
    if (i + 1) * (j + 1) == N:
        print('Yes')
        flag = 1
        break

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

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

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

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

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

for i in range(1,10):
    if c /i < 10 and c %i ==0:
        n += 1
        break
    
ans = 'Yes' if n >= 1 else 'No' 
print(ans)

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

for i in range(1,10):
    if c /i < 10 and c %i ==0:
        n += 1
    
ans = 'Yes' if n >= 1 else 'No' 
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):
from sys import stdin
import sys
import math
from functools import reduce
import functools
import itertools
from collections import deque,Counter,defaultdict
from operator import mul
import copy


import heapq
sys.setrecursionlimit(10**6)

INF = 10**18
import bisect
import statistics
mod = 10**9+7


N = int(input())

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

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

Solution (Python):

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

Solution (Python):
import sys, bisect, math, itertools, string, queue, copy








def inp(): return int(input())
def inpm(): return map(int,input().split())
def inpl(): return list(map(int, input().split()))
def inpls(): return list(input().split())
def inplm(n): return list(int(input()) for _ in range(n))
def inplL(n): return [list(input()) for _ in range(n)]
def inplT(n): return [tuple(input()) for _ in range(n)]
def inpll(n): return [list(map(int, input().split())) for _ in range(n)]
def inplls(n): return sorted([list(map(int, input().split())) for _ in range(n)])

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

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

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

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

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

left = 1
right = n
cnt = []
while n % 2 == 0:
    n //= 2
    cnt.append(2)

f = 3
while f * f <= n:
    if n % f == 0:
        n //= f
        cnt.append(f)
    else:
        f += 2

cnt.append(n)

for i in range(len(cnt)):
    left *= cnt[i]
    right //= cnt[i]
    if left < 10 and right < 10:
        print('Yes')
        exit()
print('No')

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

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

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

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

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

flag = False
for i in range(10):
    for j in range(10):
        if N == i*j:
            flag = True
if flag:
    print("Yes")
else:
    print("No")

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

n = 1
while n < 10:
  if num % n == 0 and num // n < 10:
    print('Yes')
    break
    
  n += 1
    
if n == 10:
  print('No')

Solution (Python):
A = int(input()) 
ans = min([A//i for i in range(1,10) if A%i == 0], default = 0)

print("Yes") if 1<=ans<=9 else print("No")

Solution (Python):
def main():
    N = int(input())
    is_able = False

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

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


if __name__ == "__main__":
    main()

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

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

Solution (Python):
n = int(input())
count = 0
for i in range(10):
  for j in range(10):
    if i*j == n:
      count = 1
      break

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

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

Solution (Python):
n = int(input())
x = 1
for i in range(9):
    if n/(i+1) == int(n/(i+1)):
        if n/(i+1) <= 9:
            x = 0
print("Yes" if x == 0 else "No")

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

Solution (Python):
def eighty_one(a):
    for n in range(9, 0, -1):
        if a % n == 0:
            if a // n > 9:
                return False
            else:
                return True
    return False

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

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

for i in range(1,10):
    mod = N % i
    c = N // i
    if mod == 0 and c <= 9:
        print('Yes')
        exit()
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):
N=int(input())
A=[]
for i in range(1,10):
    for j  in range(1,10):
        if i*j==N:
            A.append('Yes')
        else:
            A.append('No')
if 'Yes' in A:
    print('Yes')
else:
    print('No')

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

for n in range(1,10):
  for m in range(1,10):
    A.append(n*m)

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

Solution (Python):


n = int(input())

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

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

ans = "No"

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

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

ans = "No"
for s in range(1, 10):
    if N % s != 0:
        continue
    else:
        if int(N/s) <= 9:
            ans = "Yes"
            break
            
print(ans)

Solution (Python):
n = int(input())
numlist = [1,2,3,4,5,6,7,8,9]
flag = False

for i in numlist:
  ans1 = n / i
  for j in numlist:
    ans2 = ans1 / j
    if ans2 == 1:
      flag = True
      
if flag:
  print('Yes')
else:
  print('No')

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

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

ans = 'No'
if N<=82:
    for i in range(1,10):
        if N%i==0 and len(str(N//i))==1:
            ans = 'Yes'

print(ans)

Solution (Python):
import itertools
t = set()
for i, j in itertools.product(range(1, 10), repeat=2):
  t.add(i*j)
n = int(input())
if n in t:
  print("Yes")
else:
  print("No")

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

for i in range(1,10):
  mod,ret = divmod(n,i)
  if ret == 0 and  mod <= 9:
    print('Yes')
    sys.exit()
print('No')

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

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

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

Solution (Python):
import numpy as np

n = int(input())
a =  [x for x in range(1,10)]

for i in a:
    for j in a:
        if i * j == n:
            print('Yes')
            exit()
print('No')

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

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

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

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

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

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

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

ans = 0
ama = 0

for i in range(1, 10):
    ans = n / i
    ama = n % i

    if i == 9 and ama != 0:
        print("No")
    if i <= 9 and ans <= 9 and ama == 0:
        print("Yes")
        exit()

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

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

Solution (Python):
n = int(input())
i = 1
while i * i <= n:
    if n % i == 0:
        j = n // i
        if i < 10 and j < 10:
            print("Yes")
            quit()
    i += 1
print("No")

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

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

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

    for i in range(9):
        for j in range(9):
            if((i+1)*(j+1) == N):
                print("Yes")
                flag = True
        if flag:
            break
    else:
        print("No")


if __name__ == "__main__":
    solve()

Solution (Python):
import sys
input = sys.stdin.readline

n = int(input())

flag = False

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

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

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

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

Solution (Python):
import sys
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 N==a[i]:
        print('Yes')
        sys.exit()
    else:
        continue

print('No')

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

Solution (Python):
import itertools

N = int(input())
st = set(x * y for x, y in itertools.product(range(1, 10), repeat=2))
print('Yes' if N in st else 'No')

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

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


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

print(ans)

Solution (Python):
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(1, 10):
        if i * j == n:
            print('Yes')
            exit()
print('No')

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

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

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

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

x = 'No'
if 1 <= n <= 81:
    for s in range(1,10):
        for t in range(1,10):
            if n == s*t:
                x = 'Yes'
print(x)

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

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

for i in range(1, 10):
    m = N/i
    if(m.is_integer() and m <= 9):
        print("Yes")
        break
else:
    print("No")

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

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

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

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

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

    cond = check()

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


if __name__ == '__main__':
    main()

Solution (Python):
N = int(input())
flag=False
for i in range(1,10):
    if (N%i==0 and N/i<=9):
        flag=True
print("Yes" if flag else "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")