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



Sample input:
10


Sample output:
Yes

Submission status: Runtime Error

Solution code:
    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")

Submission status: Runtime Error

Solution code:
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")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
d = [0]*100

for a in range(1, 10):
    for b in range(1, 10):
        d[a*b] = 1

if d[int(input())]:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
judge = 'No'
for i in range(1:10):
  for j in range(1:10):
    if i * j == N:
      judge = 'Yes'
      break
    else:
      continue
  break
print(judge)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
X=[]
for i in range(1,9):
  for j in range(1,9):
    X.append(i*j)
if N in X:
  print("Yes")
else:
  prinnt("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
for i range(1,int(int(N**0.5)+1):
    if N%i==0 and N//i<=9:
        print('Yes')
else:print('No')

Submission status: Runtime Error

Solution code:
for i range(1,int(int(input())**0.5)+1):
    if N%i==0 and N//i<=9:
        print('Yes')
else:print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
flag=0
for i in range(9):
    for j in range(9):
        if i*j=n:
            flag=1
            break
if flag: print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
for i in range(9):
  for j in range(9):
    if (i+!)*(j+1) == N:
      print("Yes")
      exit()
print("No")

Submission status: Runtime Error

Solution code:
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(1)
print("No")

Submission status: Runtime Error

Solution code:
a=int(input("整数1以上9以下："))
b=int(input("整数1以上9以下："))
if a>=1 and a<=9 and b>=1 and b<=9:
    print("yes")
else:
    print("No")
print()

Submission status: Runtime Error

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

print('No')

Submission status: Runtime Error

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

if N > 81:
    print('No')
else:
    val = []
    i = 3
    while N != 1:
        if N % 2 == 0:
            val.append(2)
            N //= 2
        else:
            if i >= 10:
                print('No')
                sys.exit()
            elif N % i == 0:
                val.append(i)
                N //= i
            else:
                i += 2
if val.count(5) >= 2 and len(val) >= 3:
    print('No')
elif val.count(7) >= 2 and len(val) >= 3:
    print('No')
else:
    print('Yes')

Submission status: Runtime Error

Solution code:
N = int(input())
a = [9,8,7,6,5,4,3,2,1]
if 0 < n and n <= 81:
    for i in range(9):
        if n % a[i] == 0:
            if n / a[i] > 9:
                print('No')
            else:
                print('Yes')
                break
else:
    print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
frag='No'
for i in range(9):
  if n/(i+1)%1==0:
    frag='Yes
print(frag)

Submission status: Runtime Error

Solution code:
N=int(input())
ku={}
for i in range(9):
  for j in range(9):
    ku.add((i+1)*(j+1));
if N in ku:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
k = 0:
  for i in range(9):
    for j in range(9):
      if (i+1)*(j+1) == N:
        k += 1
if k ==0:
  print('No')
else:
  print('Yes')

Submission status: Runtime Error

Solution code:
N = int(input())
if N <= 10:
  print('Yes')
elif N = 12 or 14 or 16 or 18:
  print('Yes')
elif N = 20 or 21 or 24 or 25 or 28:
  print('Yes')
elif N = 30 or 32 or 35 or 36:
  print('Yes')
elif N = 40 or 42 or 45 or 48:
  print('Yes')
elif N = 54 or 56 or 63 or 72 or 81:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = int(input().split())

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

Submission status: Runtime Error

Solution code:
a = int(input())
i = 1
while i < 10:
  if a%i = 0 and 1<= a//i <=9:
    print("Yes")
    break
  else:
    i += 1

Submission status: Runtime Error

Solution code:
n=int(input())
a=[]
for x in range(1,10):
  for y in range(1,10):
    a+=x*y
if n in a:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
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")

Submission status: Runtime Error

Solution code:
n = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())

for a in range(1,10):
    for b in range(1,10):
        if a*b==n:
            flag=True
if flag:
   print("Yes") 
else:
     print("No")

Submission status: Runtime Error

Solution code:
n=int(input())

for a in range(1,10):
    for b in range(1,10):
        if a*b==n:
            flag=True
print("Yes" if flag else "No")

Submission status: Runtime Error

Solution code:
a

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = []
N = int(input())

for i in range(10):
    for j in range(10):
        S.append(i*j)

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

Submission status: Runtime Error

Solution code:
import math
from functools import reduce
import itertools
import numpy as np

def solve():
    n = int(input())
    num = list(range(1,10))
    bit = 0
    for i in num:
        for j in num:
            if i * j == n:
                print("Yes")
                bit = 1
                break
    i bit == 0:
        print("No")
    return 0

if __name__ == "__main__":
    solve()

Submission status: Runtime Error

Solution code:
import sys

n = int(input())

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

Submission status: Runtime Error

Solution code:
c=int(a)
b=0
if c%2!=0:
	b=b+1
if c%3!=0:
	b=b+1
if c%4!=0:
	b=b+1
if c%5!=0:
	b=b+1
if c%6!=0:
	b=b+1
if c%7!=0:
	b=b+1
if c%8!=0:
	b=b+1
if c%9!=0:
	b=b+1
if c<=81:
    if b<8:
        print("Yes")
    elif c==1:
        print("Yes")
    elif c>=50:
        if c%10==0:
            print("No")
        
    else:
      	print("No")
else:
    print("No")

Submission status: Runtime Error

Solution code:
a=input()
c=int(a)
b=0
if c%2!=0:
	b=b+1
if c%3!=0:
	b=b+1
if c%4!=0:
	b=b+1
if c%5!=0:
	b=b+1
if c%6!=0:
	b=b+1
if c%7!=0:
	b=b+1
if c%8!=0:
	b=b+1
if c%9!=0:
	b=b+1
if c<=81:
    if b<8:
	    print("Yes")
	else:
      	print("No")
else:
    print("No")

Submission status: Runtime Error

Solution code:
a=input()
b=0
if a%2!=0:
	b=b+1
if a%3!=0:
	b=b+1
if a%5!=0:
	b=b+1
if a%7!=0:
	b=b+1
if b>=1:
	print("No")
else:
	print("Yes")

Submission status: Runtime Error

Solution code:
n=int(input(n))
t=False

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

Submission status: Runtime Error

Solution code:
n=input(n)
t=False

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

Submission status: Runtime Error

Solution code:
import sys
N=input()
for i in range(1,N+1):
  for j in range(1,N+1):
    if i<j:
      if i*j==N:
        print("Yes")
        sys.exit()
print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = int(input)

k = 0

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

Submission status: Runtime Error

Solution code:
#! /usr/bin/env python
N = input()
for i in range(1, 10):
    m = N / i
    if m.is_integer() and 1 <= m <= 9:
        print('Yes')
        break
    else:
        print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())

A = ()
for i in range (10):
    for j in range(10):
        A.append(i*j)

if A.count(n) != 0:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
x = int(input())
bool ok=False
for i in range 9:
	for j in range 9:
		if(i*j==x):
			ok=True
if(ok):print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
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")

Submission status: Runtime Error

Solution code:
n = int(input())

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

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

print(flag)

Submission status: Runtime Error

Solution code:
n = int(input())

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

ans = 0
for i in range(9):
    for j in range(9):
        if n%num[i] == 0 and n%num[j] == o and n//(num[i]) == num[j]:
            ans = 1
if ans == 1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
ans='No'
for i in range(10):
  if n//i<10 and n%i==0:
    ans='Yes'

print(ans)

Submission status: Runtime Error

Solution code:
import sys
N=input()

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

Submission status: Runtime Error

Solution code:
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")

Submission status: Runtime Error

Solution code:
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(1)
print('No')

Submission status: Runtime Error

Solution code:
# import bisect
# import heapq
# from copy import deepcopy
# from collections import deque
# from collections import Counter
# from itertools import accumulate
# from itertools import permutations
# import numpy as np
import math
# mod = 10**9 + 7

# n = int(input())
# a = list(map(int, input().split()))
n = int(input())

def prime(n):
    p = True
    for i in range(2,math.sqrt(n) + 1):
        if n % i == 0 :
            p = False
            break

    return p

print('Yes' if n<=81 and not prime(n) else 'No')

Submission status: Runtime Error

Solution code:

  import sympy
A= sympy.factorint(int(input()))
X = list(A)
E = max(X)
if sum(list(A.values()))>2:
  print("NO")
elif E > 9:
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
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")

Submission status: Runtime Error

Solution code:
n = int(input())

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

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

Solution code:
def main():
    n = map(int, input().split())
    for i in range(1, 10):
        if 1 <= n//i <= 9 and (n/i).is_integer():
            print('Yes')
        else:
            print('No')
main()

Submission status: Runtime Error

Solution code:
def main():
    n = map(int, input().split())
    for i in range(1, 10, 1):
        if 1 <= n//i <= 9:
            print('Yes')
        else:
            print('No')
main()

Submission status: Runtime Error

Solution code:
a = int(input())

list = []

for i in range(a):
  if a % i == 0:
    list.append(i)
list2 = []
for j in list:
  if j < 10:
    list2.append(j)

if len(list2) >= 2:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
N=int(input())
A,B=map(int,input().split())
if 9 >= A >= 1 and 9 >= B >= 1 and A*B==N:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
import numpy as np

n = int(input())

table = np.zeros(100)

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

Submission status: Runtime Error

Solution code:
n = int(input())

for a in range(1, 10):
    for b in range(1, 10):
        if a * b == n:
            print("Yes")
            break
            else:
              print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
	N = int(input())
ans = "No"
for i in range(1,9):
    if N%i == 0:
        ans = "Yes"
print(ans)

Submission status: Runtime Error

Solution code:
N =int(input())

if N !=0 and N <10:
  print("Yes")
  exit()

for i in range(2:10):
  if N % i ==0:
    print("Yes")


    
print("No")

Submission status: Runtime Error

Solution code:
N = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
result = "No"

for i in range(2,10):
    if n % i == 0:
        result = "Yes"
         break
    else:
        next
print(result)

Submission status: Runtime Error

Solution code:
target = int(input())
rest = 0
for i in range(1, int(target/2)):
  if target % i == 0:
	rest = target / i
    if rest < 10:
      break

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def IS(): return sys.stdin.readline()[:-1]
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LII(rows_number): return [II() for _ in range(rows_number)]
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]

def main():
	N = II()
	l = [False]*100
	for i in range(1,10):
		for j in range(1,10):
			l[i*j] = True
	if(l[N]):print("Yes")
	else:print('No')



main()

Submission status: Runtime Error

Solution code:
print('Yes' if any([n/i in range(1, 10) and (n/i).is_integer() for i in range(1, 10)]) else 'No')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
if 1=<n<=81:
    if n%10==0:
        print('Yes' if n==10 else 'No')
    else:
        print('Yes')

else:
    print('No')

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())
if(A>9 or B>9):
  print("-1")
elif(A>10 and B>10):
  print("-1")
else:
  ans=A*B
  print(ans)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# input
b = int(input())
a = []
for i in range(9):
    for j in range(9):
        a.append((i+1)*(j+1))

if b in set(a)
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
N = int(input())

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
string solve()
{
    int N;
    cin>>N;
    int last = 1;
    for(int i=2; i*i<=N; i++){
        if(N%i==0){
            last = i;
        }
    }
    N = N/last;
    if(N>9 || last>9)return "No";
    return "Yes";
}
int main()
{
    cout << solve() << endl;
}

Submission status: Runtime Error

Solution code:
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")

Submission status: Runtime Error

Solution code:
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")

Submission status: Runtime Error

Solution code:
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")

Submission status: Runtime Error

Solution code:
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")

Submission status: Runtime Error

Solution code:
def main():
  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")
main()

Submission status: Runtime Error

Solution code:
def main():
  N=int(input())
  for i in range(1:10)
    for j in range(1:10):
      if all(N==i*j):
        print("No")
      else:
        print("else")
main()

Submission status: Runtime Error

Solution code:
def main():
  N=int(input())
  for i in range(1:10)
    for j in range(1:10):
      if N==i*j:
        print("Yes")
      else:
        print("No")
main()

Submission status: Runtime Error

Solution code:
def main():
  N=int(input())
  for i in range(1:10)
    for j in range(1:10):
      if N=i*j:
        print("Yes")
      else:
        print("No")
main()

Submission status: Runtime Error

Solution code:
n = int(input())
ans = 0

for s, t in range(8):
  if n == s*t:
    ans += 1
    
if ans == 0:
  print('No')
else:
  print('Yes')

Submission status: Runtime Error

Solution code:
N = int(input())

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

print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
l = []
for i in range(1, 10):
  for j in range(1, 10):
    l.appned(i*j)

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

Submission status: Runtime Error

Solution code:
n = int(input())
l = []
for i in range(1, 10):
  for j in range(1, 10):
    l.appned(i, j)

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

Submission status: Runtime Error

Solution code:
n = int(input())

for i in range(9):

     if n%i == 0 and n//i < 10:
         print('Yes')
         break

else:
    print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
li = list(S)
n = int(len(li)/2)
half_li = list()
for i in range(n):
	half_li.append(li[i])
T = ''.join(half_li)
if S == T*2:
	print('Yes')
else:
	print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
for i range(10):
    num = n % i
    if num != 0:
        print('No')
else:
    print('Yes')

Submission status: Runtime Error

Solution code:
n = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
 
for i in range(1, 9)
  for j in range(1, 9)
    if n == i * j:
      print("Yes")
      break
 
print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
 
for i in range(1, 9)
	for j in range(1, 9)
		if n == i * j:
			print("Yes")
			break
 
print("No")

Submission status: Runtime Error

Solution code:
n = int(input())

for i in range(1, 9)
	for j in range(1, 9)
    	if n == i * j:
			print("Yes")
			break

print("No")

Submission status: Runtime Error

Solution code:
n = int(input())

for i in range(1, 9)
	for j in range(1, 9)
    	if n == i * j:
        	print("Yes")
            break

print("No")

Submission status: Runtime Error

Solution code:
n = int(input())

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

print("No")

Submission status: Runtime Error

Solution code:
print("YNeos"[1-int(bin(2375063778094260874239)[-int(input())])::2])

Submission status: Runtime Error

Solution code:
a = int(input())
for i in range(1,10):
    for l in range(1,10):
        print(i)
        
        if i * l == a:
            h = True
            break
if h:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=input()
N=int(N)
A=1
B=1
flag=0
if N>81:
    flag=0
else:
    for A in range(10):
    for B in range(10):
        if N==A*B:
        flag=1
    else:
        flag=0
if flag==0:
    print('NO')
else:
    print('YES')

Submission status: Runtime Error

Solution code:
usrInput = input()
divisor = []
flag = []
finalFlag = False

for kuku in range(9):
    currentDivisor = kuku+1
    if int(usrInput) % currentDivisor == 0:
        divisor.append(currentDivisor)

for x in range(len(divisor)):
    anotherDivisor:float = int(usrInput) / divisor[x]
    if float.is_integer(anotherDivisor) == True and anotherDivisor <= 9 and anotherDivisor > 0 and int(divisor[x]) > 0:
        flag.append(True)
    else:
        flag.append(False)

for n in range(len(divisor)):
    if bool(flag[n]) == True:
        finalFlag = True

if finalFlag == True:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
usrInput = input()
divisor = []
flag = []
finalFlag = False

for kuku in range(9):
    currentDivisor = kuku+1
    if int(usrInput) % currentDivisor == 0:
        divisor.append(currentDivisor)

for x in range(len(divisor)):
    anotherDivisor:float = int(usrInput) / divisor[x]
    if float.is_integer(anotherDivisor) == True and anotherDivisor <= 9:
        flag.append(True)
    else:
        flag.append(False)

for n in range(len(divisor)):
    if bool(flag[n]) == True:
        finalFlag = True

if finalFlag == True:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
is81 = false
for i in range(1, 10):
    for j in range(1, 10):
        if i*j == N:
            is81 = True

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

Submission status: Runtime Error

Solution code:
n=int(input())
ans="No"
for i in range(100):
  if n%i==0:
    ans="Yes"
    break
print(ans)

Submission status: Runtime Error

Solution code:
n=int(input())
s=[0]*100
for i in range(1,10):
  for j in range(1,10):
    s[10*i+j]=i*j
p=81
for k in range(1,101):
  if s[k]==n:
    p=p-1
if p==81:
  print('No')
else:
  print('Yes')

Submission status: Runtime Error

Solution code:
N = int(input())
for i in range(1,9):
    for j in range(1,9):
       if i*j == N:
         break
　　　　　print("YES")
       else:
          print("NO")

Submission status: Runtime Error

Solution code:
a,b= map.(int, input().split())
ans=a*b
if ans>=81:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = int(input())

for i in range(1,10):
  for x in range (1,10):
    
    arr.append(i*x)
for element in arr:
  if  element == n:
    hello = 0
    break
  else:
    hello = 2
    continue
if hello == 2:
  print('No')
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
n = int(input())
for a in range(1, 10):
    for b in range(1, 10):
        if n == a * b:
            print('Yes')
            return
print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())

a=[]
for i in range(1,10):
	if n/i<10:
      a.append("Yes")

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

Submission status: Runtime Error

Solution code:
kuku= [1, 2, 3, 4, 5, 6, 7, 8, 9]
c = 0

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

Submission status: Runtime Error

Solution code:
N = int(input())
d = list(map(int, input().split()))
sum = 0
 
for i in range(len(d)):
  for j in range(i+1,len(d)):
    sum += d[i]*d[j]
 
print(sum)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = int(input())
a = list(range(1,10))
for i in a:
     if k in / i >= 10:
             print("No")
     else:
             print("Yes")

Submission status: Runtime Error

Solution code:
k = int(input())

for i in list(range(1,10)):
     if k in / i >= 10:
             print("No")
     else:
             print("Yes")

Submission status: Runtime Error

Solution code:
in = int(input())
for i in list(range(1,10)):
     if in / i >= 10:
             print("No")
     else:
             print("Yes")

Submission status: Runtime Error

Solution code:
in = int(input())
for i in list(range(10)):
     if in / i >= 10:
             print("No")
     else:
             print("Yes")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(raw_input())

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

Submission status: Runtime Error

Solution code:
N = int(raw_input())

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

Submission status: Runtime Error

Solution code:
N = int(raw_input())

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