Problem:
 Score : 200 points    Problem Statement Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N , determine whether N can be represented as the product of two integers between 1 and 9 . If it can, print Yes ; if it cannot, print No .      Constraints  1 \leq N \leq 100  N is an integer.         Input Input is given from Standard Input in the following format:  N       Output If N can be represented as the product of two integers between 1 and 9 (inclusive), print Yes ; if it cannot, print No .        Sample Input 1 10      Sample Output 1 Yes  10 can be represented as, for example, 2 \times 5 .       Sample Input 2 50      Sample Output 2 No  50 cannot be represented as the product of two integers between 1 and 9 .       Sample Input 3 81      Sample Output 3 Yes

Solution (Python):
import sys
import os
import math

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    N = ii()

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


if __name__ == '__main__':
    main()

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

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

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

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

Solution (Python):
import sys



def input():
    return sys.stdin.readline().rstrip('\n')

N = int(input())






T = []

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

if N in T:
    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')
            exit()
print('No')

Solution (Python):
from sys import exit

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

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

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

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

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

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

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

Solution (Python):

import sys

n = int(input())

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


print('No')

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

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

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):
N = int(input())
for i in range(1, 10):
  A = N / i
  if A.is_integer() and A < 10:
    print('Yes')
    exit()
print('No')

Solution (Python):
import sys
n = int(input())
ls = []
for i in range(1,10):
    for j in range(1,10):
        a = i * j
        ls.append(a)
for u in ls:
    if n == u:
        print("Yes") 
        sys.exit()   
    else:
        continue
print("No")

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

Solution (Python):
import sys
stdin = sys.stdin
sys.setrecursionlimit(10 ** 7)

i_i = lambda: int(i_s())
i_l = lambda: list(map(int, stdin.readline().split()))
i_s = lambda: stdin.readline().rstrip()

N = i_i()

for i in range(0, 10):
    for j in range(0, 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 in range(1,10):
        print('Yes')
        break
else:
    print('No')

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

check = 0
for i in range(1, 10):
  amari = N % i
  sho = N // i
  if amari == 0 and 1 <= sho <= 9:
    check = 1

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

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

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

if ans >= 1:
    print("Yes")
else:
    print("No")

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

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

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

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

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


if __name__ == '__main__':
    solve()

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

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

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

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

if n > 81:
    print("No")

elif n%2 == 0:
    if n%8 == 0:
        if n//8 < 10:
            print("Yes")
        else:
            print("No")
    elif n%6 == 0:
        if n//6 < 10:
            print("Yes")
        else:
            print("No")
    elif n%4 == 0:
        if n//4 < 10:
            print("Yes")
        else:
            print("No")
    else:
        if n//2 < 10:
            print("Yes")
        else:
            print("No")

elif n%3 == 0:
    if n%9 == 0:
        if n//9 < 10:
            print("Yes")
        else:
            print("No")
    else:
        if n//3 < 10:
            print("Yes")
        else:
            print("No")

elif n%5 == 0:
    if n//5 < 10:
        print("Yes")
    else:
        print("No")

elif n%7 == 0:
    if n//7 < 10:
        print("Yes")
    else:
        print("No")

else:
    if n < 10:
        print("Yes")
    else:
        print("No")

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

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

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

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

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

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

Solution (Python):
N = int(input())
for i in range(9):
  if N % (i+1) == 0:
    if N / (i+1) < 10:
      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):
t = [i * j for j in range(1,10) for i in range(1,10)]
print("YNeos"[int(input()) not in t::2])

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

def res():
    for i in range(1,10):
        if n%i != 0:
            continue
        if n//i >=1 and n//i <= 9:
            return "Yes"
        
    return "No"

print(res())

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

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

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

Solution (Python):
N = int(input())
kuku = [1, 2, 3, 4, 5, 6, 7, 8, 9]
kuku1 = [a * b for a in kuku for b in kuku]
if N in kuku1:
  print("Yes")
else:
  print("No")

Solution (Python):


def is_81(num):
    for d in range(1, 10):
        q, mod = divmod(num, d)
        if mod == 0 and q < 10:
            return True
    return False

num = int(input())

if is_81(num):
    print('Yes')
else:
    print('No')

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

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

print('Yes' if flg else '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()

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):
import sys
import re
from decimal import *

l = sys.stdin.readline()


n = int(l)

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

print("No")

sys.stdout.flush()

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

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

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

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

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

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

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

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

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

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

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

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

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

res = "No"
for i in range(9):
  q, r = divmod(N, i+1)
  if (1 <= q <= 9) and r == 0:
    res = "Yes"

print(res)

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


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

print("Yes" if(b==1) else "No")

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

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

print(a)

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 > 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):
from sys import exit
N = int(input())
for i in range(1,10):
  if N == N // i * i and N // i < 10: 
    print("Yes")
    exit()
print("No")

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

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

Solution (Python):








import math




n = int(input())


if n > 81:
    print('No')
    exit()

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

print('No')

Solution (Python):
import sys
input = lambda: sys.stdin.readline().rstrip()
input_nums = lambda: list(map(int, input().split()))

def main():
    N = int(input())
    multi = {i*j for i in range(1, 10) for j in range(1, 10)}
    if N in multi:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()

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

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

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

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

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())
flg = False 
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == N:
            print("Yes")
            flg = True
            break
    if flg:
        break
if not flg:
    print("No")

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

Solution (Python):

a = int(input())
s_l = [7,5,3,2]
for i in range(9):
    if a%(9-i)==0:
        if a/(9-i)<=9 and a>0:
            print("Yes")
            break
        else:
            print("No")
            break

Solution (Python):
n = int(input())
ls = []
for i in range(1,10):
    for j in range(1,10):
        a = i * j
        ls.append(a)
b = 0
for u in ls:
    if n == u:
        b += 1    
    else:
        continue
if b > 0:
    print("Yes")
else:
    print("No")

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

for i in range(9):
	for j in range(9):
		if (i+1) * (j+1) == N:
			ans = 1
if ans == 0:
	print('No')
else:
	print('Yes')

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

def main():
    N = int(input())
    l = [a*b for a,b in itertools.product(range(1,10),range(1,10))]

    ll = list(set(l))

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


if __name__ == "__main__":
    main()

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

Solution (Python):
judge = False
N = int(input())
for i in range(9):
    for j in range(9):
        
        if (i+1) * (j+1) == N:
            judge = True

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

Solution (Python):
x = int(input())
a="No"
for i in range(1,10):
  for l in range(1,10):
    if i*l == x:
      a='Yes'
      break
    else:
      continue
print(a)

Solution (Python):
n = int(input())
kuku = {a * b for a in range(1, 10) for b in range(1, 10)}

for i in kuku:
    if n == i:
        print('Yes')
        exit()

print('No')

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

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

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())
jud=""
for i in range(1,10):
    for j in range(1,10):
        if n==i*j:
            jud="Yes"
            break
if jud=="":
    jud+="No"
print(jud)

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

Solution (Python):

n = int(input())
l = []*81
for i in range(10):
     for j in range(10):
          l.append(i*j)

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())
flag = False
for i in range(1,10):
  if n%i == 0 and 0 < n/i < 10:
    flag = True
    break
if flag:
  print("Yes")
else:
  print("No")

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

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

Solution (Python):

n = int(input())
flg = False
for i in range(1, 10):
    if n % i ==0:
        if n // i < 10:
            flg = True
print('Yes' if flg else 'No')

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

Solution (Python):
import sys

from collections import Counter

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

if __name__ == '__main__':
    main()

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

print('No')

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

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

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

flag = False
for i in range(1, 10):
    if n%i == 0:
        remain = n/i
        for j in range(1, 10):
            if remain== j:
                print("Yes")
                flag =True
                break
        
        if flag:
            break
            
if not flag:
    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==1:
  print("Yes")
else:
  print("No")

Solution (Python):

A = int(input())

list_99 = []
for i in range(9):
  for j in range(9):
    list_99.append((i+1)*(j+1))
    
    
if((A in list_99) == True):
  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()
        else:
            pass
print("No")

Solution (Python):
n = int(input())
ok = False
for i in range(9):
    for j in range(9):
        if n == (i+1)*(j+1) :
            ok = True

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

Solution (Python):
import sys

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

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

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

print("Yes" if count > 0 else "No")

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

Solution (Python):
import sys

N = int(input())

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

Solution (Python):
print("Yes" if int(input()) in {x*y for x in range(10) for y in range(10)} else "No")

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

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

print("No")

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

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

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

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

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

Solution (Python):
import sys

n = int(input())

if n > 81:
	print('No')
	sys.exit()
if n < 10:
	print('Yes')
	sys.exit()

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

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

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

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

Solution (Python):
Lists=[]

for i in range(9):
    for j in range(9):
        Lists.append((i+1)*(j+1))
        
N=int(input())
print("Yes" if (Lists.count(N)>0) 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()
print('No')

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

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

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

Solution (Python):
n=int(input())
s=0
for a in range(1,10):
  for b in range(1,10):
    if a*b==n:
      print('Yes')
      s+=1
      break
  else:
    continue
  break
if s==0:
  print('No')

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

Solution (Python):
n = int(input())
s = list(range(1,10))
a = 0
for i in s:
    for j in s:
        if i * j == n:
            a += 1
        else:
            a += 0

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

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

print(solve())

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

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

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

Solution (Python):

"""
Created on Thu Mar 12 01:45:52 2020

@author: Kanaru Sato
"""

n = int(input())
flag = 0

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

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

for i in range(1,10):
    for j in range(1,10):
        S=i*j
        if N==S:
            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):
n = int(input())
f = 0
for i in range(1,10):
    for j in range(1,10):
        if i*j == n:
            print('Yes')
            f = 1
            break
    else:
        continue
        
    break

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

Solution (Python):
import sys


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


if __name__ == "__main__":
    main()

Solution (Python):
import sys

sys.setrecursionlimit(100000000)
input = lambda: sys.stdin.readline().rstrip()

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

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

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

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

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

table = [0 for i in range(0, 102)]

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

if table[n] == 1:
    print('Yes')
else:
    print('No')

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

Solution (Python):
import sys

n = int(input())

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

print('No')

Solution (Python):
def Calc(N):
    for i in range(1, 9 + 1):
        for j in range(1, 9 + 1):
            if i * j == N:
                return "Yes"
    return "No"

N = int(input())
print(Calc(N))

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

is_81 = False
for i in range(9):
    if n % (i+1) ==0:
        if (n / (i+1)) <= 9:
            is_81 = True

if is_81:
    print('Yes')
else:
    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):
n=int(input())

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

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

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

    flag = False

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

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

if __name__ == "__main__":
    main()

Solution (Python):
N = int(input())
qq = set()
for i in range(1, 10):
    for j in range(1, 10):
        qq.add(i * j)
print('YNeos'[not N in qq::2])

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

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

Solution (Python):

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