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())
ans="No"
for i in range(1,10):
	if(n/i==n//i and n//i<10):
		ans="Yes"
print(ans)

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

n = int(input())

for num in range(1,10):
    if(n % num == 0 and n / num <10):
        print('Yes')
        sys.exit()
print('No')

Solution (Python):
n= int(input())
f=0
for i in range(1,10):
    a=n//i
    if a<10 and n-a*i==0:
        f=1
if f==1:
    print ("Yes")
else:
    print("No")

Solution (Python):
n = int(input())
for i in range(10):
  for j in range(10):
    if i*j == n:
      break
  else:
     continue
  break    

if i*j == n:
  print("Yes")
else:
  print("No")

Solution (Python):

N = int(input())

break_flag = 0

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

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

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

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

print(ans)

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

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

print(ans)

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


main()

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

kuku = []

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

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

Solution (Python):
def main():
    N = int(input())
    ans = "No"
    flg = False
    for i in range(10):
        for j in range(10):
            if N == i * j:
                ans = "Yes"
                flg = True
                break
        if flg:
            break
    print(ans)
    return


main()

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

for i in range(9,0,-1):
  if n % i ==0:
    break

if (n/i)>9:
  print("No")
else:
  print("Yes")

Solution (Python):
from enum import Enum
from queue import Queue

import numpy as np

import collections
import bisect
import sys
import math

from scipy.sparse.csgraph import floyd_warshall

BIG_NUM = 200000000000
MOD = 1000000007
EPS = 0.000000001

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

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

i = 1

while i<10:
  num = N / i 
  if  N%i ==0:
    if 0<num<10:
    	print('Yes')
    	break
  i +=1
    
if i>=10:
  print('No')

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()
print("No")

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

if n>81:
    print("No")
elif n<10:
    print("Yes")
else:
    for i in reversed(range(1,10)):
        if n%i==0:
            s = n/i
            if s<10:
                print("Yes")
                exit()
    print("No")

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

a = int(input())
judge(a)

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

ans = "No"

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

print(ans)

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

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):
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())
ans="No"
for i in range(1,10,1):

    m=n%i
    if m==0 and n/i>=1 and n/i<=9:
        ans="Yes"
        break
print(ans)

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

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

ans='No'

for i in range(1,10):
    if N%i ==0 and N//i <=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())
k=0
for j in range(9,0,-1):
  if n/j==float(n//j):
    if n//j<=9:
      k=1
if k==0:
  print("No")
elif k==1:
  print("Yes")

Solution (Python):
m = int(input())
a = {}
for i in range(1, int(m**0.5)+1):
    if m % i == 0:
        n = m // i
        a[i] = n
b = min(a.values())
if b < 10: print("Yes")
else: print("No")

Solution (Python):



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

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

    print('No')


if __name__ == '__main__':
    main()

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

Solution (Python):
N = int(input())
for a in range(1, 10):
    flag = False
    for b in range(1, 10):
        if a * b == N:

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

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

prod = {i * j for i in range(1, 10) for j in range(1, 10)}
print('Yes' if N in prod else 'No')

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

Solution (Python):
def check():
  n = int(input())
  if n <= 9:
    return 'Yes'
  elif n > 81:
    return 'No'
  else:
    for i in range(2, 10):
      if n % i == 0 and n / i <= 9:
        return 'Yes'
    return 'No'

print(check())

Solution (Python):
import itertools
N = int(input())
ans = 'No'
for i, j in itertools.product(range(1, 10), repeat=2):
    if i * j == N:
        ans = 'Yes'
        break
print(ans)

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

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

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

for i in range(9):
  if N%(i+1)==0 and N/(i+1)<=9:
    pass
  else:
    count+=1

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

Solution (Python):

n = int(input())


ans = False


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


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

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

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

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

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

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

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

Solution (Python):
N = int(input())
A = 1
B = 1
frag = 0
for A in range(1, 10):
    for B in range(1, 10):
        if N == A*B:
            frag = 1
if frag == 1:
    print('Yes')
else:
    print('No')

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

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

Solution (Python):
import sys
import math
import bisect
 
 
sys.setrecursionlimit(1000000000)
def input():
    return sys.stdin.readline().strip()
 
def iinput():
    return int(input())
 
def finput():
    return float(input())
 
def tinput():
    return input().split()
 
def rinput():
    return map(int, tinput())
 
def rlinput():
    return list(rinput())
 
def modst(a, s):
    res = 1
    while s:
        if s % 2:
            res *= a
        a *= a
        s //= 2
    return res

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

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):
"""
制約
1≦N≦100
Nは整数
"""


N = int(input())


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


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

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

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

print("No")

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

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

Solution (Python):
import numpy as np
import math

def bigger_devisor(n):
  s = np.sqrt(n)
  i = math.ceil(s)
  while(n % i != 0):
    i += 1
  return i

n = int(input())
if bigger_devisor(n) > 9:
  print('No')
else:
  print('Yes')

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

for i in range(9):
  for j in range(9):
    kuku.append((i + 1) * (j + 1))
if N in kuku:
  print('Yes')
else:
  print('No')

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

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

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

Solution (Python):
n=int(input())
i=1
check=False
while i<10:
    if n/i<10 and n%i==0:
        print("Yes")
        check=True
        break
    i+=1
 
if not check:
    print("No")

Solution (Python):
n=int(input())
i=1
check=False
q=int(n**.5+1)
while i<q:
    if n/i<10 and n%i==0:
        print("Yes")
        check=True
        break
    i+=1
 
if not check:
    print("No")

Solution (Python):
a = int(input())
f = False
for i in range(1, 10):
  if (a // i * i) == a and a // i < 10:
    f = True
if f:
  print("Yes")
else:
  print("No")

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

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

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

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

ans = 'No'
int_99 = range(1, 10)
for i in int_99:
    n = N / i
    if n in int_99:
        ans = 'Yes'
        break
print(ans)

Solution (Python):
n=int(input())
l=[9,8,7,6,5,4,3,2]
count=0

if 1*2*3*4*25*6*49*8*9%n==0 and n//9<10:
    for i in l:
        if n%i==0 and n/i<10:
            count+=1
            break
print('Yes' if count==1 or n==1 else '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):
A = int(input())

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

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

Solution (Python):

a = int(input())

ans = 'No'

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

print(ans)

Solution (Python):

import sys
sys.setrecursionlimit(12345678)
import itertools
from collections import Counter
from collections import defaultdict
from collections import deque
import bisect
from heapq import heappush, heappop


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

Solution (Python):
n = int(input())
ans = "No"

if n > 81 or n == 0:
    print(ans)
    exit()
else:
    for i in range(1, 10)[::-1]:
        x = n/i
        
        if x.is_integer() == True:
            if len(str(int(x))) == 1:
                ans = "Yes"
    print(ans)

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

Solution (Python):
N = int(input())
list_a=list()
for i in range(1,10):
    for j in range(1,i+1):
        list_a.append(i*j)
if N in list_a :
    print("Yes")
else:
    print("No")

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

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

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

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

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

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

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

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

def Checker(N):
  for A in range(1, 10):
    for B in range(1, 10):
      if A*B == N:
        print('Yes')
        return 0
  print('No')

Checker(N)

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

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

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):
import numpy as np
n = int(input())

ls = np.array(np.arange(1,10))


x = 0
for i in ls:
    x += (n / i) in ls

print("No" if x == 0 else "Yes")

Solution (Python):

import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush, heapify
import math
import itertools
import random
 




 
INF = float('inf')
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    N = inputInt()
    
    for i in range(1,10):
        for j in range(1,10):
            ans = i*j
            if ans == N:
                print("Yes")
                sys.exit()
                
    print("No")
    
if __name__ == "__main__":
	main()

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

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

print('No')

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

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

if n in num:
    print("Yes")
else:
    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 is True:
	print("Yes")
else:
	print("No")

Solution (Python):
N = int(input())
dict = {}

for i in range(1, 10):
    for j in range(i, 10):
        dict[i*j] = True
print('Yes' if dict.get(N) else 'No')

Solution (Python):
n = int(input())
flag = "No"

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

print(flag)

Solution (Python):
a=int(input())
p = 'No'

for i in range(9):
    b = a % (i+1)
    c = a / (i+1)
    if b == 0 and c <= 9:
        p = 'Yes'
        break

print(p)

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

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

Solution (Python):

import sys

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

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

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


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

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

Solution (Python):
N = int(input())
a = 9
if N > 81:
    print("No")
    exit()

while a > 0:
    if (N % a == 0) and (N <= a * a):
        print("Yes")
        exit()
    a -= 1

print("No")

Solution (Python):
N = input()

for a in range(1, 10):
  for b in range(1, 10):
    if a*b==N:
      print "Yes"
      exit(0)
print "No"

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

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

Solution (Python):
def main():
  n = int(input())
  for f in range(9, 0, -1):
    if n % f == 0:
      n = n // f
      break
  print('Yes' if 1 <= n <= 9 else 'No')


main()

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
        else:
            continue

if count != 0:
    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())
b = False
i=1
while i<=9:
    j=1
    while j<=i:
        if j*i==n:
            print('Yes')
            b = True
            break
        j+=1
    if b==True:
        break
    i+=1
if b==False:
    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())
check=False;
i=1
while i<10:
    j=1
    while j<10:
        if (i*j==n):
            print('Yes')
            check=True
            break;
        j+=1;
    if check:
        break
    i+=1


if not check:
    print("No")

Solution (Python):

def main():
    N = int(input())
    cand = set(i * j for i in range(1, 10) for j in range(1, 10))
    flg = N in cand
    print("Yes" if flg else "No")


if __name__ == "__main__":
    main()

Solution (Python):
n = int(input())
t = 'No'
for i in range (1,10):
    nn = n/i
    if (nn.is_integer()) == True and nn < 10 and nn > 0:
        t = 'Yes'
    else:
        pass

print(t)

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

print("No")

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

Solution (Python):
n=int(input())
check=False;
i=1
while i<10:
    j=1
    while j<10:
        if (i*j==n):
            print('Yes')
            check=True
            break;
        j+=1;
    if check:
        break
    i+=1
 
 
if not check:
    print("No")

Solution (Python):
n=int(input())
i=1
check=False
while i<int(n**.5+1):
    if n/i<10 and n%i==0:
        print("Yes")
        check=True
        break
    i+=1

if not check:
    print("No")

Solution (Python):
print(' YNeos'[int(input())in[a//9*(a%10)for a in range(90)]::2])

Solution (Python):
print(' YNeos'[int(input())in[a//9*(a%10)for a in range(90)]::2])

Solution (Python):
print(' YNeos'[-int(input())in[a//~9*(a%10)for a in range(90)]::2])

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):
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):
print(' YNeos'[int(input())in[a//10*(a%10)for a in range(100)]::2])

Solution (Python):
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(N=None): return list(MAP()) if N is None else [INT() for i in range(N)]

N = INT()

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

Solution (Python):

n = int(input(""))

f=0

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

        
        a= i*j

        if n == (i*j) :
            
            print("Yes")
            f = 1
            break
        else:
            None

    if f == 1 :
        break

if f != 1 :
    print ("No")

Solution (Python):

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

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

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

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

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

print(ans)

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

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

for i in range(9):
  if N / (i+1) <= 9 and N/(i+1)-N//(i+1)==0:
    print('Yes')
    flag=False
    break
  
if flag:
  print('No')

Solution (Python):
s = set([])
for i in range(1, 10):
  for j in range(1, 10):
    s.add(i * j)
a = int(raw_input())
print 'Yes' if a in s else 'No'

Solution (Python):
r=range(1,10);print(' YNeos'[int(input())in[i*j for i in r for j in r]::2])

Solution (Python):
r=range(1,10);print('YNeos'[not(int(input())in[i*j for i in r for j in r])::2])

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

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

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

Solution (Python):
import math
a = int(input())
flag = False
i = 1

while i <= math.sqrt(a):
  b = divmod(a,i)
  if b[0] < 10 and b[1] == 0:
    flag = True
  i+=1
    
if flag:
  print("Yes")
else:
  print("No")

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

Solution (Python):
"""
author : dokueki
"""
import math
n = int(input())
f = 0
for i in range(1,10):
    if (n/i)-math.floor(n/i)==0 and (n//i) in range(1,10):
        f+=1
if f>0:
    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')
		break
if i == 9 and N % i != 0:
	print('No')

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

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

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

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

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

xlist=[]
for a in range(10):
    for b in range(10):
        xlist.append(a*b)

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

Solution (Python):
print(' YNeos'[input()in[str(a//10*(a%10))for a in range(100)]::2])

Solution (Python):
n = int(input())
a = 1
while a <= 9:
    b = n // a
    mod = n % a
    
    if mod == 0 and 1 <= b <=9:
        print("Yes")
        exit()
    else:
        a += 1
print("No")

Solution (Python):
r=range(10);print(' YNeos'[input()in[str(a*b)for a in r for b in r]::2])

Solution (Python):
r=range(10);print(' YNeos'[int(input())in[a*b for a in r for b in r]::2])

Solution (Python):
n=int(input());print('YNeos'[all(n//~i<-9or n%~i<0for i in range(9))::2])

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")
    break
else:
  print("No")

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

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

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):
def solve():
    n = read()
    result = think(n)
    write(result)


def read():
    return read_int(1)[0]


def read_int(n):
    return list(map(lambda x: int(x), read_line().split(' ')))[:n]


def read_float(n):
    return list(map(lambda x: float(x), read_line().split(' ')))[:n]


def read_line(n=0):
    if n == 0:
        return input().rstrip()
    else:
        return input().rstrip()[:n]


def think(n):
    floor = 1
    ceil = 10
    for x in range(floor, ceil):
        if n % x == 0:
            if n // x in range(floor, ceil):
                return 'Yes'
    return 'No'


def write(result):
    print(result)


if __name__ == '__main__':
    solve()

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

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

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

for i in range(10):
    for j in range(10):
        c = i*j
        list.append(c)
if n in list:
    print("Yes")
else:
    print("No")

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

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

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

Solution (Python):

N = int(input())


while(1):
  
  
  temp1 = N/1
  if(temp1<=9 and N%1==0):
    print('Yes')
    break
  temp2 = N/2
  if(temp2<=9 and N%2==0):
    print('Yes')
    break
  temp3 = N/3
  if(temp3<=9 and N%3==0):
    print('Yes')
    break
  temp4 = N/4
  if(temp4<=9 and N%4==0):
    print('Yes')
    break
  temp5 = N/5
  if(temp5<=9 and N%5==0):
    print('Yes')
    break
  temp6 = N/6
  if(temp6<=9 and N%6==0):
    print('Yes')
    break
  temp7 = N/7
  if(temp7<=9 and N%7==0):
    print('Yes')
    break
  temp8 = N/8
  if(temp8<=9 and N%8==0):
    print('Yes')
    break
  temp9 = N/9
  if(temp9<=9 and N%9==0):
    print('Yes')
    break
  
  print('No')
  break

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 % 9 == 0:
    a = n/9
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 8 == 0:
    a = n/8
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 7 == 0:
    a = n/7
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 6 == 0:
    a = n/6
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 5 == 0:
    a = n/5
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 4 == 0:
    a = n/4
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 3 == 0:
    a = n/3
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 2 == 0:
    a = n/2
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n == 1:
    print("Yes")
else :
    print("No")

Solution (Python):
table = set([(i*j) for j in range(1, 9+1) for i in range(1, 9+1)])
N = int(input())

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