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):
if __name__ == "__main__":
    N = int(input())

    mul = list()
    for i in range(1, 10):
        for j in range(1, 10):
            tmp = i * j
            if tmp not in mul:
                mul.append(tmp)
    
    if N in mul:
        print("Yes")
    else:
        print("No")

Solution (Python):
N = int(input())
flag = False
for i in range(1,10):
    for s in range(1,10):
        if i*s == N:
            flag = True
if flag:
    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())
f = False
for i in range(9):
    for j in range(9):
        if (i+1)*(j+1) == N:
            f = True
if f:
    print('Yes')
else:
    print('No')

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

n = int(input())

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

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

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

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

def main():
    input = sys.stdin.readline
    N = int(input())
    ans = "No"
    for i in range(9):
        i += 1
        for j in range(9):
            j += 1
            if N == i * j:
                ans = "Yes"
                break
    print(ans)

if __name__ == '__main__':
    main()

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

D=False
for i in range(1,10):
	if D:
		break
	for n in range(1,10):
		if i*n==N:
			D=True

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

Solution (Python):

N = int(input())

ret = 'No'
for a in range(1, 10):
    for b in range(1, 10):
        if a*b == N:
            ret = 'Yes'
            break

print(ret)

Solution (Python):
import numpy as np

n = int(input())

seki = []

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

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




"""

"""

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

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

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

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

c = False
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            c = True
if c == True:
    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):
kuku = list()

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

s = [0]*100
s[0] = 1
for i in range(1,10):
    for j in range(1, 10):
        s[i*10+j] = i*j

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

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

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

print(out)

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

ans=False
for i in range(1,10):
    for j in range(1,10):
        a=i*j
        if a == n:
            ans=True

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

Solution (Python):


A=list(map(int,(input().split())))
N=A[0]
def dou(ans):
	for x in range(1,10):
		for y in range(1,10):
			if (x*y==ans):return True
	return False
if (dou(N)):
	print("Yes")
else:
	print("No")

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

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

print(solve())

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

Solution (Python):
ii = lambda: int(input())
mis = lambda: map(int,input().split())
lmis = lambda: list(mis())

x = ii()

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

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

flag = False

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

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

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


if __name__ == '__main__':
    main()

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

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

print('No')

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys

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

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

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

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

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):
import sys
def input():
    return sys.stdin.readline()[:-1]


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

Solution (Python):
def main():
  n = int(raw_input())
  for a in xrange(1, 10):
    for b in xrange(1, 10):
      if a*b == n:
        print('Yes')
        return
  print('No')

main()

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

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

if not flag:
    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):


import sys
import math
import collections



n=int(input())




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

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

print('No')

Solution (Python):
n = int(input())
k = 0
for i in range(9):
    a = 9-i
    if n % a == 0 and n / a <= 9:
        print("Yes")
        k = 1
        break
    else:
        pass

if k == 0:
    print("No")
else:
    pass

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

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

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

flag = False

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

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


input = sys.stdin.readline


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


if __name__ == '__main__':
    main()

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


def main():
    import math
    import collections
    import itertools

    n = int(input())
    if n > 81:
        print("No")
        exit()

    for i in range(9, 0, -1):
        div, rem = divmod(n, i)
        if rem == 0 and div <= 9:
            print("Yes")
            exit()
    else:
        print("No")




if __name__ == '__main__':
    main()

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

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

if __name__ == "__main__":
    f_b()

Solution (Python):
n = int(input())
n_list =[i*j for i in range(1,10,1) for j in range(1,10,1)]
if n in n_list:
    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
sys.setrecursionlimit(1000000000)
ii = lambda: int(input())
ii0 = lambda: ii() - 1
mis = lambda: map(int, input().split())
lmis = lambda: list(mis())
INF = float('inf')

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



main()

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

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

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

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


def main():
    n = int(input())
    list1 = [v*1 for v in range(1, 10)]
    list2 = [v*2 for v in range(1, 10)]
    list3 = [v*3 for v in range(1, 10)]
    list4 = [v*4 for v in range(1, 10)]
    list5 = [v*5 for v in range(1, 10)]
    list6 = [v*6 for v in range(1, 10)]
    list7 = [v*7 for v in range(1, 10)]
    list8 = [v*8 for v in range(1, 10)]
    list9 = [v*9 for v in range(1, 10)]
    if n in list1 or n in list2 or n in list3 or n in list4 or n in list5 or n in list6 or n in list7 or n in list8 or n in list9:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

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

for i in range(10):
	for j in range(10):
		if N == i*j:
			print('Yes')
			judge = True
			break
	if judge == True:
		break
			
if judge == False:
	print('No')

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

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

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

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

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

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

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

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

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):
from sys import stdin
N = int(stdin.readline().rstrip())
flag = False
for i in range(1,10):
    if N % i == 0:
        if len(str(N // i)) == 1:
            flag = True
if flag:
    print("Yes")
else:
    print("No")

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

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

print("No")

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

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

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
print("Yes") if flag else print("No")

Solution (Python):
N=input()
for a in range(1,10):
    if N%a==0 and 1<=N/a<=9:
        print "Yes"
        quit()
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):
import sys
from collections import deque,defaultdict
from fractions import gcd
from math import ceil

def N():
    return int(sys.stdin.readline())
def NK():
    return map(int,sys.stdin.readline().split())
def LS_I():
    return [int(x) for x in sys.stdin.readline().split()]
def LS_S():
    return list(input())
def main():
    n =N()
    for i in range(1,10):
        if n%i==0 and 1<=(n//i)<=9:
            print("Yes")
            exit()
    print("No")
                
if __name__ == "__main__":
    main()

Solution (Python):

N = int(input())

li =[]

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

for i in range(len(li)):
    if li[i] == N:
        print('Yes')
        exit()

print('No')

Solution (Python):

import sys
input = sys.stdin.readline


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


if __name__ == '__main__':
    main()

Solution (Python):
num =[1,2,3,4,5,6,7,8,9]
n = int(input())
c = 0
for i in num:
    for j in num:
        if i * j == n:
            c = 1
            break
if c == 1:
    print("Yes")
else:
    print("No")

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

print(ans)

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

print('Yes' if N in (a*b for a in range(1,10) for b in range(a,10)) 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())

ans = 'No'
for i in range(9):
    i = 9-i
    if N % i == 0 and N//i <= 9:
        ans = 'Yes'
        break
print(ans)

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

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

print(f())

Solution (Python):
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:
    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())

count = 0

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

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

Solution (Python):
n = int(input())
prod = ["No"] * 101
for i in range(10):
    for j in range(10):
        prod[i*j] = "Yes"
print(prod[n])

Solution (Python):
n = int(input())
l = []
for i in range(9):
    for j in range(9):
        l.append((i+1) * (j+1))

if n in l:
    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, 1):
    tmp = N / i
    if 1 <= tmp <= 9 and int(tmp) == tmp:
        print("Yes")
        exit()

print("No")

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

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

ans = []
for i in range(1,10):
    for j in range(1,10):
        ans.append(str(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 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 i*j==n:
			print("Yes")
			exit()
print("No")

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

Solution (Python):
from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    N = int(input())

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


main()

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

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

print('No')

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

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

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

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

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

if __name__ == '__main__':
    main()

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

list = []
for i in range(1,10):
        for j in range(1,10):
                list.append(i*j)
if b in list:
        print("Yes")
else:
        print("No")

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

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

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

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

tmp = list(range(1,10))

for i in range(1,10):
    if n/i in tmp:
        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):
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):
ans_list = [a*b for a in range(1, 10) for b in range(1, 10)]
print("Yes" if int(input()) in ans_list else "No")

Solution (Python):

def two_int():
    N, K = map(int, input().split())
    return N,K

def one_int():
    return int(input())

def one_str():
    return input()

def many_int():
    return list(map(int, input().split()))

N=one_int()
flg=False
for i in range(1,10):
    if (N/i).is_integer():
        if 1<= int(N//i) <= 9:
            flg=True
if flg:
    print("Yes")
else:
    print("No")

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

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())
kuku=[1,
 2,
 3,
 4,
 5,
 6,
 7,
 8,
 9,
 2,
 4,
 6,
 8,
 10,
 12,
 14,
 16,
 18,
 3,
 6,
 9,
 12,
 15,
 18,
 21,
 24,
 27,
 4,
 8,
 12,
 16,
 20,
 24,
 28,
 32,
 36,
 5,
 10,
 15,
 20,
 25,
 30,
 35,
 40,
 45,
 6,
 12,
 18,
 24,
 30,
 36,
 42,
 48,
 54,
 7,
 14,
 21,
 28,
 35,
 42,
 49,
 56,
 63,
 8,
 16,
 24,
 32,
 40,
 48,
 56,
 64,
 72,
 9,
 18,
 27,
 36,
 45,
 54,
 63,
 72,
 81]
if N in kuku:
    print("Yes")
else:
    print("No")

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

import sys
import bisect
sys.setrecursionlimit(10**6)
write = sys.stdout.write
dbg = lambda *something : print(*something) if DEBUG else 0
DEBUG = False
def main(given = sys.stdin.readline):
    input = lambda : given().rstrip()
    LMIIS = lambda : list(map(int,input().split()))
    II = lambda : int(input())
    XLMIIS = lambda x : [LMIIS() for _ in range(x)]


    n = II()

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



if __name__ == '__main__':
    main()

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

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

f = 0

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

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

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

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


main()

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

print('Yes' if n in ls else 'No')

Solution (Python):
import sys
def get_array(): return list(map(int, sys.stdin.readline().strip().split()))
def get_ints(): return map(int, sys.stdin.readline().strip().split())
def input(): return sys.stdin.readline().strip()

a = int(input())
myset = set()
for i in range(1,10):
    for j in range(1,10):
        myset.add(i*j)
if a in myset:
    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):
N = int(input())

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

if flag:
    print("Yes")
else:
    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
if(a):
    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):
    for j in range(1,10):
        if N==i*j:
            print("Yes")
            break
    else:
        continue
    break
else:
    print("No")

Solution (Python):
import sys

input = sys.stdin.readline

N = int(input())

m = [-1]*101

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

if m[N]==1:
	print('Yes')
else:
	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):

import sys
args = sys.argv
if len(args) == 2:
  from IPython import embed
  em = True
else:
  em = False
input = sys.stdin.readline
N = int(input())
if em: sys.stdin = open('/dev/tty')
for i in range(1,10):
  if N // i < 10 and N % i == 0:
    print("Yes")
    exit()
  else:
    continue
print("No")

Solution (Python):

n = int(input())
result = False
for i in range(1, 10):
    a = n // i
    b = n % i
    if (a < 10) & (b==0):
        result = True
if result:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys
input = sys.stdin.readline
sys.setrecursionlimit(100000)
def getN():
    return int(input())
def getList():
    return list(map(int, input().split()))

def solve():
    return


def main():
    n = getN()
    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 = 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):
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())
i = 1
ans = "No"
while i < 10:
  n = N // i
  if n * i == N and n < 10 and n > 0:
    ans = "Yes"
    break
  i += 1
print(ans)

Solution (Python):
N = int(input())
jud = False
for i in range(1,10):
  for j in range(1,10):
    if i*j == N:
      jud = True
if jud:
  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 i*j == N:
                print('Yes')
                return
    print('No')
    return

main()

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

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

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


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


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

print("No")

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

def test(N):
  for i in range(1,10):
    for j in range(1,10):
      if i*j == N:
        return 'Yes'
  return 'No'

print(test(N))

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

Solution (Python):
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")
            exit()

print("No")

Solution (Python):

si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

N = ni()

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

def main():
    if N > 81:
        print("No")
        return None

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

main()

Solution (Python):
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):
import sys

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

print('No')

Solution (Python):
print(" YNeos"[int(input())in[a*b for a in range(10)for b in range(10)]::2])

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

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

Solution (Python):
ls = list(range(1,10))
n = int(input())
p = 0
for i in range(1,10):
    if (n/i) in ls:
        print("Yes")
        p += 1
        break
        
if p == 0:
    print("No")

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

for a in range(1, 9 + 1):
  b = n // a
  if 1 <= b <= 9 and a * b == n:
    print('Yes')
    exit(0)

print('No')

Solution (Python):
n = int(input())
ok = False
for i in range(1, 10):
    m, rest = divmod(n, i)
    if 1 <= m <= 9 and rest == 0:
        print('Yes')
        ok = True
        break
if not ok:
    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')
      break
  else:
    continue
  break
else:
  print('No')

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

num = [i for i in range(1, 10)]

ans = "No"
for n in num:
  if N % n == 0 and N // n <= 9:
    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())

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