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())
a1=[i+1 for i in range(9)]
b1=[i+1 for i in range(9)]
c=[]
for a in a1:
  for b in b1:
    c.append(a*b)
if n in c:
  print("Yes")
else:
  print("No")

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

print('No')

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

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

suc = 0
for x in range(1,10):
	for y in range(1,10):
		if a == int(x*y):
			suc = 1
			break
		else:
			continue

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

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

if Flag == True:
  print('No')
else:
  print('Yes')

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

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

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

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

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

Solution (Python):
class Abc81:
    def __init__(self):
        self.N = int(input())

    def resolve(self):
        for i in range(1,10):
            temp_ans = self.N/i
            if temp_ans  < 10 and temp_ans.is_integer():
                ans = 'Yes'
                break
            else:
                ans = 'No'
        print(ans)        
            

resolver = Abc81()
resolver.resolve()

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())
s=[0]*100
for i in range(1,10):
  for j in range(1,10):
    s[10*i+j]=i*j
p=81
for k in range(0,100):
  if s[k]==n:
    p=p-1
if p==81:
  print('No')
else:
  print('Yes')

Solution (Python):
num = int(input())
hantei = 0
for i in range(1,num+1):
  p = num/i
  if p.is_integer() == True:
    if len(str(i)) == 1 and len(str(int(p))) == 1:
      hantei+=1
      break
      
      
if hantei == 0:
  print("No")
else:
  print("Yes")

Solution (Python):
def main():
    N = int(input())
    
    a = [1,2,3,4,5,6,7,8,9]
    b = [1,2,3,4,5,6,7,8,9]
    for s in a:
        
        for w in b:
        
            
            if N == s * w:
                print('Yes')
                return
    print('No')
               
        
if __name__ == "__main__":
    main()

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

num_list = []

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

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

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

flg = 0

for i in range(10):
	for j in range(10):
		if i * j == n:
			flg = 1

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

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

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

Solution (Python):
n = int(input())
out = 0
for i in range(10):
  for j in range(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"
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())
lis=[i for i in range(1,10)]
for x in lis:
  if n%x==0 and n//x<10:
    print('Yes')
    exit()
print('No')

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

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

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

Solution (Python):
import itertools
n = int(input())
number_list = [1,2,3,4,5,6,7,8,9]
pattern_list = list(itertools.combinations_with_replacement(number_list,2))
kuku = []
for tup in pattern_list:
    kuku.append(tup[0]*tup[1])
if n in kuku:
    print("Yes")
else:
    print("No")

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

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

count=0
for z in y:
    if N==z:
        count+=1
    else:
        count=count
if count==0:
    print('No')
else:
    print('Yes')

Solution (Python):
N = int(input())
List = [1,2,3,4,5,6,7,8,9]
A = []
for i in List:
  for j in List:
    A.append(i*j)
    
if N in A:
  print('Yes')
else:
  print('No')

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

Solution (Python):


import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)

def no():
    print("No")
def yes():
    print("Yes")
    
n=int(input().rstrip())

for a in range(1,10):
    for b in range(1,10):
        
        
        if(a*b==n):
            yes()
            sys.exit()
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())
 
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())
if N >=82:
    print("No")

elif (N % 9 == 0):
    print("Yes")
elif (N % 8 == 0) and (N <= 72):
    print("Yes")
elif (N % 7 == 0) and (N <= 63):
    print("Yes")
elif (N % 6 == 0) and (N <= 54):
    print("Yes")
elif (N % 5 == 0) and (N <= 45):
    print("Yes")
elif (N % 4 == 0) and (N <= 36):
    print("Yes")
elif (N % 3 == 0) and (N <= 27):
    print("Yes")
elif (N % 2 == 0) and (N <= 18):
    print("Yes")
elif N<= 9:
    print("Yes")
else:
    print("No")

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

Solution (Python):
def solve(N):
    for i in range(10):
        for j in range(10):
            if i*j == N:
                return "Yes"
    return "No"

N = int(input())
ans = solve(N)
print(ans)

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

l = set()

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

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

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

Solution (Python):

from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def sum_of_arithmetic_progression(s, d, n):
    return n * (2 * s + (n - 1) * d) // 2


def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


def lcm(a, b):
    g = gcd(a, b)
    return a / g * b


YES = "Yes"  
NO = "No"  

def solve():
    return


def main():
    N = int(input())
    for i in range(1, 10):
        for j in range(1, 10):
            if i * j == N:
                print(YES)
                return
    print(NO)


if __name__ == '__main__':
    main()

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

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

Solution (Python):
import sys

N=int(input().strip())

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

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

for x in range(10):
  for y in range(10):
    if x * y == n:
      print("Yes")
      exit()
      
print("No")

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

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

revList = [9, 8, 7, 6, 5, 4, 3, 2, 1]
for i in revList:
  if n % i == 0:
    if n/i < 10:
      print("Yes")
      break
else:
  print("No")

Solution (Python):
n = int(input())
for a in range(1, 10):
    for b in range(1, 10):
        if n == a * b:
            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()
        else:
            continue
print("No")

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

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

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

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

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

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

print("No")

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

Solution (Python):
import heapq

N = int(input())

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

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

flag = 0
for i in range(9):
    for j in range(9):
        if n == (i + 1) * (j + 1):
            flag += 1

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

Solution (Python):

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

print(ans)

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

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

for i in range(1,10):
  syo,amari = divmod(N,i)
  if amari == 0 and syo < 10:
    flag = 1

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

Solution (Python):
def func(a):
    for i in range(1, 10):
        for n in range(1, 10):
            if a == i * n:
                print("Yes")
                return
    print("No")




i = int(input())
func(i)

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

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

Solution (Python):
if __name__ == '__main__':

	n = int(input())
	A = []

	for x in range(1,10):
		for y in range(x,10):
			if x * y not in A:
				A.append(x * y)

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

Solution (Python):
n=int(input())
 
a=[]
for i in range(1,10):
	if n/i<10 and n%i==0:
		a.append("Yes")
 
if "Yes" in a:
  print("Yes")
else:
  print("No")

Solution (Python):
N = int(input())
kuku= [1, 2, 3, 4, 5, 6, 7, 8, 9]
c = 0

for a in kuku:
    for b in kuku:
        if a*b == N:
            c+=1
if c>=1:
    print('Yes')
else:
    print('No')

Solution (Python):
N=int(input())
l={i*j for i in range(10) for j in range(10)}
print('Yes' if N in l else '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())

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

else :
    print("No")

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

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

Solution (Python):

import sys













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

def main():
    n = int(sys.stdin.readline().rstrip())
    
    print('Yes' if n in table else 'No')


if __name__ == "__main__":
    main()

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

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

Solution (Python):

a = int(input())

text="No"

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

print(text)

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):
from itertools import product

N = int(input())

print("Yes" if N in map(lambda p: p[0] * p[1], product(range(1, 10), range(1, 10))) else "No")

Solution (Python):
N = int(input())
for a in range(1, 10):
    b = N // a
    if a * b == N and b in range(1, 10):
        print('Yes')
        break
else:
    print('No')

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

Solution (Python):
import sys
a=int(input())
for i in range(10):
  for j in range(10):
    if i*j==a:
      print("Yes")
      sys.exit(0)
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'
        break
print(ans)

Solution (Python):
x=int(input())
f=False
for i in range(10):
  for j in range(10):
    if i * j == x:
      f = True
print("Yes" if f else "No")

Solution (Python):
N = int(input())
cnt = 0
for i in range(1,10):
  if N % i == 0 and 1<=N/i<=9:
    cnt = 1
    break
  
if cnt == 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):
N = int(input())
for i in range(1,10):
    for i1 in range(1,10):
        if (i*i1) == N:
            print("Yes")
            exit()
print("No")

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

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

Solution (Python):
n = int(input())
num_list = [2,3,4,5,6,7,8,9]
div_flag = False
for num in num_list:
    if n / num < 10 and int(n/num)==n/num:
        div_flag = True
if div_flag or (n==1):
    print('Yes')
else:
    print('No')

Solution (Python):
n = int(input())
answer = 'No'

for x in range(1, 10):
  for y in range(1, 10):
    if n == x * y:
      answer = 'Yes'
      
print(answer)

Solution (Python):
import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    n = int(readline())
    for i in range(1, 10):
        for j in range(1, 10):
            if i * j == n:
                print("Yes")
                exit()
    print("No")


if __name__ == '__main__':
    solve()

Solution (Python):

ans = int(input())
ans_lists=[]
a = [1,2,3,4,5,6,7,8,9]
b = [1,2,3,4,5,6,7,8,9]
for a_youso in a:
    for b_youso in b:
        n=a_youso*b_youso
        ans_lists.append(n)
if ans in ans_lists:
    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())


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

print(state)

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):
A=input().split()
a=int(A[0])
p=0
for i in range(1,10):
    for j in range(1,10):
        if a==i*j and p==0:print("Yes");p=1
if p==0:print("No")

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

if N in set([i * j for i in range(1, 10) for j in range (1, 10)]):
    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")
        exit()
print("No")

Solution (Python):
import numpy as np

def judge(N):
  a = np.arange(1,10)
  b = np.reshape(a,(9,1))
  if N in a*b:
    print("Yes")
  else:
    print("No")

N = int(input())
judge(N)

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

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

Solution (Python):
a=int(input())
if a<10:
  print('Yes')
else:
  f=False
  d=0
  for i in range(2,10):
    if a%i==0:
      f=True
      d=a//i
  if f==True and d<10:
    print('Yes')
  else:
    print('No')

Solution (Python):
print('Yes' if int(input()) in {i*j for i in range(10) for j in range(10)} else 'No')

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

Solution (Python):
n = int(input())
a = []
for i in range(9):
    for j in range(9):
        a.append((i+1)*(j+1))
b = True
if n in a:
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())
def aaa():
    for a in range(1,10):
        for b in range(1,10):
            if n == a * b:
                return 'ok'
m = aaa()

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

N = int(input())

li = [1,2,3,4,5,6,7,8,9]
ans = []
for i in range(len(li)):
    p = N % li[i]
    q = N // li[i]
    if (p==0):
        ans.append(q)

ansflag = False
if (len(ans)!=0):
    for i in ans:
        if (i in li):
            ansflag = True
            break
        else:
            continue

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

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

Solution (Python):
kuku=[]
for i in range(1,10):
	for j in range(1,10):
		kuku.append(i*j)
num=int(input())
if num in kuku:
	print("Yes")
else:
	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, = map(int, raw_input().split())
found = False
for i in range(1,10):
    if n % i == 0 and n//i < 10:
        found = True

if found:
    print "Yes"
else:
    print "No"

Solution (Python):
def main():
    table = [i * j for i in range(1, 9 + 1) for j in range(1, 9 + 1)]

    n = int(input())

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


if __name__ == '__main__':
    main()

Solution (Python):
num = int(input())
result = 'No'
for i in range(1,10):
  ans, odd = divmod(num,i)
  if not odd and ans<10:
    result = 'Yes'

print(result)

Solution (Python):

class Solution:
    def solve(self, n: int) -> str:

        prods = set()

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

        if n in prods:
            return 'Yes'
        else:
            return 'No'


if __name__ == '__main__':

    
    n = int(input())

    
    solution = Solution()
    print(solution.solve(n))

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

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

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

for a in range(1,9+1):
    for b in range(1,9+1):
        if N==a*b:
            count=count+1
        else:
            pass

if count==0:
    print("No")
else:
    print("Yes")

Solution (Python):
import math
N=int(input())
n=int(math.sqrt(N))
a=0
b=0
if n<10:
  for i in range(1,n+1):
    if N%i==0:
      a=i
      b=N//i
      if b<10:
        print('Yes')
        exit()
else:
  for i in range(1,10):
    if N%i==0:
      a=i
      b=N//i
      if b<10:
        print('Yes')
        exit()
print('No')

Solution (Python):
import sys
N = int(input())
a = 1
b = 1
if (N == 1)or(N == 81):
    print("Yes")
elif (2 <= N <= 80):
    for a in range(1,10):
        for b in range(1,10):
            if N == a*b:
                print("Yes")
                sys.exit()
            else:
                None
    print("No")
    sys.exit()
elif 82 <= N:
    print("No")

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

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

nums=[]

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

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

Solution (Python):
import sys
N = int(input())
for i in range(1,10):
  if N // i < 10 and (N // i)*i == N:
    print("Yes")
    sys.exit()
  else:
    None
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):
print(['No','Yes'][input()in{str(x*y)for x in range(1,10)for y in range(1,10)}])

Solution (Python):
n =int(input())
cnt = 0
for i in range(9):
    for j in range(9):
        if (i+1)*(j+1)==n:
            cnt+=1

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

Solution (Python):
n = int(input())
cnt = 0
for i in range(10):
    for j in range(10):
        if n == i * j:
            cnt += 1
if cnt >= 1:
    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

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

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

N = int(input())
if N in lst:
  print("Yes")
else:
  print("No")

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

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

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

else:
    print("No")

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

Solution (Python):




def I(): return int(input())


def IsIl(): return list(map(lambda x: int(x), input().split()))


def InIl(n): return [input() for i in range(n)]


def IsIt(): return map(lambda x: int(x), input().split())


def InIl(n): return map(input() for i in range(n))


def SsSl(): return list(map(lambda x: x, input()))




def SSd():
    from collections import defaultdict
    A = input() 
    dd=defaultdict(int)
    for a in A:
        dd[a]+=1
    return dd

n=I()

lis = []

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

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

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

ans = "No"
for A in range(1, 10):
  for B in range(1, 10):
    if A * B == N:
      ans = "Yes"

print(ans)

Solution (Python):


import sys

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

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

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

flg=False

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

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

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

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

Solution (Python):



input_val = int(input())
hantei = 0

for i in range(1, 10):
    val_side = input_val / i
    if val_side < 10 and i * int(val_side) == input_val:
        hantei = 1
        break

if hantei == 0:
    print("No")
else:
    print("Yes")

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

l = [1,2,3,4,5,6,7,8,9]

for num in l:
    ret = a / num
    if ret.is_integer() and ret >= 1 and ret <= 9:
        print("Yes")
        exit(0)

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())
cnt = 0
for i in range(10):
    for j in range(10):
        if n == i*j:
            cnt = 1
            break
    if cnt:
        break
if cnt:
    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())
count=0

for i in range(1,10):
    for j in range(1,10):
        if i*j==n:
            count+=1
            break
if count>=1:
    print("Yes")
else:
    print("No")

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

found = False
for i in xrange(1, 10):	
  for j in xrange(1, 10):
    if i*j == N:
      found = True
      
print "Yes" if found else "No"

Solution (Python):



def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**6)

    

    n = int(input())
    for i in range(1, 10):
        if n % i != 0:
            continue
        for j in range(1, 10):
            if n//i % j != 0:
                continue
            if 0 <= n//i//j <= 1:
                print('Yes')
                exit(0)
    print('No')


if __name__ == '__main__':
    main()

Solution (Python):
s = int(input());
flg = 0;
for i in range(1,10):
	for j in range(1,10):
		if i*j==s:
			flg = 1
			break


if flg == 0:
	output = "No" 
else:
	output = "Yes"
print(output);

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

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

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

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

ret = 'No'
for x in range(1,10):
    for y in range(1,10):
        if x*y == n:
            ret = 'Yes'
            break

print(ret)

Solution (Python):
n = int(input())
t = [1, 2, 3, 4, 5, 6, 7, 8, 9]
i = 0
count = 0
for i in t:
  if (n / t[i-1]) in t:
    print("Yes")
    count = 1
    break
if count == 0:
  print("No")

Solution (Python):
from sys import stdin
n = int(stdin.readline().rstrip())
for i in range(1,10):
    for j in range(1,10):
        a = i*j
        if a == n:
            print("Yes")
            exit()
        else:
            pass
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())

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

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

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

N = int(input())
a = 0
for value in answer.values():
  if N in value:
    a = 1

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

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

N = int(input())
a = 0
for value in answer.values():
  if N in value:
    a = 1

if a == 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:
            break
    if i * j == N:
        print("Yes")
        break
    elif i == 9 and i * j != N:
        print("No")