Problem:


Score : 200 points

Problem Statement

Given are a positive integer N and a string S of length N consisting of lowercase English letters.

Determine whether the string is a concatenation of two copies of some string.
That is, determine whether there is a string T such that S = T + T.

Constraints

1 \leq N \leq 100

S consists of lowercase English letters.

|S| = N

Input

Input is given from Standard Input in the following format:

N
S

Output

If S is a concatenation of two copies of some string, print Yes; otherwise, print No.

Sample Input 1

6
abcabc

Sample Output 1

Yes

Let T =  abc, and S = T + T.

Sample Input 2

6
abcadc

Sample Output 2

No

Sample Input 3

1
z

Sample Output 3

No



Sample input:
6
abcabc


Sample output:
Yes

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
x = int(N/2)

for i in range(x):
  if S[i] != S[i+x]:
    print("No")
    break
  else:
    i += 1

if i != 0:
  print("Yes")

Submission status: Runtime Error

Solution code:
def solve():
    n, data = [x for x in input().split(" ")]
    n = int(n)
    if data[:n//2] == data[n//2:]:
        return "Yes"
    return "No"

if __name__ == "__main__":
    # test = int(input())
    # for _ in test:
    print(solve())

Submission status: Runtime Error

Solution code:
def solve():
    n, data = [x for x in input().split(" ")]
    n = int(n)
    if data[:n//2] == data[n//2:-1]:
        return "Yes"
    return "No"

if __name__ == "__main__":
    # test = int(input())
    # for _ in test:
    solve()

Submission status: Runtime Error

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

if(N%2 == 0):
  n = N/2
  if(S[0:(n/2-1)] == S[n/2:N]):
    print("Yes")
  else:
    print("No")
else:
  print("No")

Submission status: Runtime Error

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

if(S.len()%2 == 0):
  n = (S.len())/2
  if(S[0:(n/2-1)] == S[n/2:n]):
    print("Yes")
  else:
    print("No")
else:
  print("No")

Submission status: Runtime Error

Solution code:
def main():
	# n,m = map(int,input().split())
	n = int(input())
	s = str(input())
	# a = list(map(int,input().split()))
	# l = [list(map(int, input().split())) for _ in range(n)]

	if s[:(n/2)] == s+s:
		print("Yes")

	else:
		print("No")
	
	






if __name__ == '__main__':
	main()

Submission status: Runtime Error

Solution code:
def main():
	# n,m = map(int,input().split())
	n = int(input())
	s = str(intpu())
	# a = list(map(int,input().split()))
	# l = [list(map(int, input().split())) for _ in range(n)]

	if s[:(n/2)] == s+s:
		print("Yes")

	else:
		print("No")
	
	






if __name__ == '__main__':
	main()

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
n=len(S)
if n%2==0:
  T=S[0:n/2]
   if S==T+T:
     print("Yes")
   else:
     print("No")
else:
  print("No")

Submission status: Runtime Error

Solution code:
N=input()
S=list(input())
 
if N%2!=0:
    print('No')
else:
    if S[:N/2]==S[N/2:]:
        print('Yes')
    else:
        print('No')

Submission status: Runtime Error

Solution code:
N=input()
S=list(input())

if len(N)%2!=0:
  print('No')
else:
  if S[:N/2]==S[N/2]:
    print('Yes')
  else:
    print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
key = 0

if N = 1:
  key += 1
else:
  for i in range(N//2):
  if S[i] != S[(N//2)+i]:
    key += 1
    
if key >= 1:
  print('No')
else:
  print('Yes')

Submission status: Runtime Error

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

for i in range(N//2):
  if S[i] != S[-i-1]:
    key += 1
    
if key >= 1:
  print('No')
else:
  print('Yes')

Submission status: Runtime Error

Solution code:
def main():
  N=int(input())
  S=input()
  n=len(S)
  if n%2==0:
    half=S[0:n/2]
    if S=half+half:
      print("Yes")
    else:
      print("No")
  else:
    print("No")
main()

Submission status: Runtime Error

Solution code:
def main():
  N=int(input())
  S=input()
  n=len(S)
  if n%2==0:
    if all(S[i]==S[n/2+i] for i in range(n/2)):
      print("Yes")
    else:
      print("No")
  else:
    print("No")
 main()

Submission status: Runtime Error

Solution code:
def main():
  N=int(input())
  S=input()
  n=len(S)
  if n%2!=0:
    print("No")
  if n%2==0:
    if all(S[i]==S[n/2+i] for i in range(n/2)):
      print("Yes")
    else:
      print("No")
 main()

Submission status: Runtime Error

Solution code:
def main()
  N=int(input())
  S=input()
  n=len(S)
  if n%2==0:
    if S[i]==S[n/2+i] for all(i in range(n/2)):
      print("Yes")
    else:
      print("No")
  else:
    print("No")
main()

Submission status: Runtime Error

Solution code:
def main()
  N=int(input())
  S=input()
  n=len(S)
  if n%2==0:
    if S[i]==S[n/2+i] for all(i in range(n/2)):
      print("Yes")
    else:
      print("No")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
t = int(input())
s = input()
if(s[0:t//2]==s[t//2:t]:
   print("Yes")
else:
   print("No")

Submission status: Runtime Error

Solution code:
n = input()
s = input()

if s[0:n/2] == s[n/2:n]:
  print("yes")
else:
  print("no")

Submission status: Runtime Error

Solution code:
n = Input()
s = Input()

if s[0:n/2] == s[n/2:n]:
  print("yes")
else:
  print("no")

Submission status: Runtime Error

Solution code:
n = input()
s = list(input())
a = len(s)/2
if len(s)%2 ==1:
    print('No')

else:
    if s[:a-1] == s[a:]:
        print('Yes')
    else:
        print('No')

Submission status: Runtime Error

Solution code:
S = int(input())
LENS = int((len(S))/2)
mae = S[0:LENS]
usiro = S[LENS:len(S)]

if mae == usiro:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
n=int(input())
ch=input()
if n%2==1:
    print('No')
else:
    if ch[:n//2]==ch[n//2:]:
        print('Yes')
    else:
        print('No')

Submission status: Runtime Error

Solution code:
numberinput= int(raw_input())
letterinput= raw_input()
if numberinput%2==1:
	print("No")
else:
  	if letterinput[:len(letterinput)//2]==letterinput[len(letterinput)//2:]
    	print("Yes")
    else:
        print("No)

Submission status: Runtime Error

Solution code:

ch=input()

if ch[:n//2]==ch[n//2:]:
  print('Yes')
else:
   print('No')

Submission status: Runtime Error

Solution code:
n=int(input())
word=input()

letters=[]
for letter in word:
    letters.append(letters)
letters1= letters[:len(letters)//2]
letters2= letters[len(letters)//2:]
  
if letters1==letters2:
	return print(Yes)
else:
  	return print(No)

Submission status: Runtime Error

Solution code:
for letter in listofentries[1]:
    letters.append(letters)
letters1= letters[:len(letters)//2]
letters2= letters[len(letters)//2:]
  
if letters1==letters2:
	return print(Yes)
else:
  	return print(No)

Submission status: Runtime Error

Solution code:

for letter in listofentries[1]:
    letters.append(letters)
numbertoindex= listofentries[0]/2-1
 
for index in range(numbertoindex):
	letters1.append(index)
for index in range(numberofindex, listofentries[0]-1)
	letters2.append(index)
  
if letters1==letters2:
	return print(Yes)
else:
  	return print(No)

Submission status: Runtime Error

Solution code:
listofentries=input().split()
letters=[]
letters1=[]
letters2=[]
if listofentries[0]%2==1:
	return No
else:
	for letter in listofentries[1]:
    	letters.append(letters)
numbertoindex= listofentries[0]/2-1

for index in range(numbertoindex):
	letters1.append(index)
for index in range(numberofindex, listofentries[0]-1)
	letters2.append(index)
  
if letters1==letters2:
	return Yes

Submission status: Runtime Error

Solution code:
aaaaaaaaaaaaaaaaaaaa

Submission status: Runtime Error

Solution code:
n = int(input())//2
s = input()

if [:n] == [n:]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
cnt= 0

if n%2 == 0:
  for i in range(len(s)/2):
    if s[i] == s[-1-i]:
      cnt += 1
  if n/2 == cnt:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input()) # length of string
str = input()
mid = n / 2 # the first char in later str
counter = 0
for i in range(mid):
  if n % 2 != 0:
    print("No")
    break
  elif str[i] == str[mid + i]:
    counter += 1
    
if counter == mid :
  print("Yes")

Submission status: Runtime Error

Solution code:
N=int(input())
S=str(input())

if S%2==1:
  print('No');exit()
  
print('Yes' if S[0:S//2-1]==S[S//2-1:N-1] else 'No')

Submission status: Runtime Error

Solution code:
def solve(string):
    n, s = string.split()
    n = int(n)
    return "Yes" if s[:n // 2] == s[n // 2:] else "No"


if __name__ == '__main__':
    print(solve(input()))

Submission status: Runtime Error

Solution code:
N = int(input())
if N % 2 == 1:
    print("No")
	exit()
S = input()
if S[0:N//2] == S[N//2:]:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = int(input())

s_length = len(s)

if s[: s_length // 2] == s[s_length // 2]:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
if n%2==1:
  print(No)
  exit(0)
if s[:n//2]==s[n//2:]:
  print('Yes')
  exit(0)
print('No')

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
if n%2==1:
  print(No)
  exit(0)
if s[:i//2]==s[i//2:]:
  print('Yes')
  exit(0)
print('No')

Submission status: Runtime Error

Solution code:

N, S = input().split()

hN = int(int(N)/2)

S1 = S[:hN]
S2 = S[hN:]

if(S1 == S2):
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()

if n % 2 != 0:
  print('No')
else:
  m = n/2
  if s[:m-1] == s[m:]:
    print('Yes')

Submission status: Runtime Error

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

if N % 2 ==1:
    print("No")
else:
    if S[:int(N/2)]==S[int(N/2):]:
        print("Yes")
    else:
        print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = str(input())

if N % 2 ==1:
  print("No")
else:
  if S[:int(N/2)]==S[int(N/2):]:
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
i = int(input())
s = input()
n = i // 2
s1 = s[0:n]
s2 = s[n:i]
#print(s1)
#print(s2)

if((i % 2 == 0)and(s1 == s2)):
    print("Yes")
e6lse:
    print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

if n % 2 == 1:
    print("No")
else:
    s_1 = s[:n/2]
    s_2 = s[n/2:n]
    if s_1 != s_2:
        print("No")
    else:
        print("Yes")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

if n % 2 == 1:
    print("No")
else:
    if s[:n/2] != s[n/2:n]:
        print("No")
    else:
        print("Yes")

Submission status: Runtime Error

Solution code:
n = input()
s = raw_input()
if(n%2==1):
 	print "No"
else:
	if(s[0:n/2]==s[n/2:n]):
		print "Yes"
  	else:
    	print "No"

Submission status: Runtime Error

Solution code:
n = int(input())
s = int(input())
string_1 = ""
string_2 = ""
for i in range(len(s)):
    string_1 += s[i]

for i in range(len(s)/2,len(s)-1):
    string_2 += s[i]
if string_1 + string_2 == s:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

if N % 2 == 1:
  print('No')
  exit()

if S[:N/2] == S[N/2:]:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
N = input()
S = input()
if S[:N]==S[N:]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
usrInputN = int(input())
usrInputS = input()
finalFlag = False
firstPart = {}
secondPart = {}
forNO = 0
finding = 0

if usrInputN % 2 == 0:
  finalFlag = False

for forNO in range(usrInputN / 2):
  firstPart.append(usrInput[forNo])
  secondPart.append(usrInput[forNo + usrInputN / 2])

forNO = 0
  
while whileIs:
  if firstPart[finding] == secondPart[finding]:
    
  
if finalFlag:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
N=int(input())
s=input()
if N%2==1:
  print("No")
else:
  for i in range(N):
    if s[i]!=s[N-i-1]:
      print("No")
      return(0)
  print("Yes")

Submission status: Runtime Error

Solution code:
n,s = [input() for i in range(n)]

if n%2 == 0 and s[::(n//2-1)] == s[(n//2-1)::]:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
a=int(input())
b=input()
if a%2!=0:
  print("No")
else:
  a/=2
  c=b[:a]
  d=b[a:]
  if c==d:
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
if n%2==0:
  s1=s[:n/2]
  s2=s[n/2:]
  if s1==s2:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
if (N%2!=0):
    print('No')
else:
    a1=S[:N/2]
    a2=S[N/2:]
    if (a1==a2):
        print('Yes')
    else:
        print('No')

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
if (N%2!=0):
    print('No')
else:
    a1=S[:N/2]
    a2=S[N/2:]
    if (a1==a2):
        print('Yes')

Submission status: Runtime Error

Solution code:
def samestring():
  N=int(input())
  S=list(input())
  if N % 2 != 0:
    print('No')
  else:
    S1 = S[0:int(N/2)]
    S2 = S[int(N/2):]

  if S1 == S2:
    print('{}'.format('Yes'))
  else:
    print('{}'.format('No'))

samestring()

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
if N%2 == 0:
    print(S[:int(N/2)] == S[int(N/2):])
else:
	print(false)

Submission status: Runtime Error

Solution code:
# coding: utf-8
n = int(input())
s = input()
if n % 2:
	print('No')
else:
	if s[0:(n/2)] == s[(n/2):n]:
		print('Yes')
	else:
		print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

if n % 2 == 0:
    t = s[0:n/2]
    if s == t + t:
        print("Yes")
        exit()
print("No")

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
if(n%2!=0):
  print("No")
else:
  v=[s[i: i+n/2] for i in range(0, len(s), n/2)]
  if(len(set(v))==1):
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
v=[s[i: i+n/2] for i in range(0, len(s), n/2)]
if(len(set(v))==1):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
if n%2==0:
    a = s[0:(n/2-1)]
    b = s[(n/2):]
    if a==b:
        print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
Flag = True
if N % 2 == 1:
  Flag = False
for i in range(0,N+1):
  if Flag == True and S[i] != S[i+N/2] :
    Flag = False
if Flag == True:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
N, row = input().split()
unit1, unit2 = row[:len(row)//2], row[len(row)//2:]
if unit1 == unit2:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
s = input()
if len(S) % 2 == 1:
  print('No')
else:
  if s[0:(len(s)-1)/2] == s[(len(s)-1)/2+1:len(s)-1]:
    print('Yes')
  else:
    print('No')

Submission status: Runtime Error

Solution code:
a = int(input())
b = str(input())
 
if (a/2)%2==1:
  print('No')
elif: b[0:int(a/2)]==b[int(a/2):]:
    print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
a = int(input())
b = str(input())

if (a/2)%2==1:
  print('No')
elif:
  if b[0:int(a/2)]==b[int(a/2):]:
    print('Yes')
  else:
    print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

if n%2==0:
  s1 = s[:n/2]
  s2 = s[n/2:]
  if s1 == s2:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
if N%2 == 1: print("No")
else:
    n=int(N/2)
    S = input()
    if S[:n]==s[n:] :print("Yes")
    else:print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
if N%2 == 1: print("No")
else:
  	n=int(N/2)
    S = input()
    if S[:n]==s[n:] :print("Yes")
    else:print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
if N%2 == 1: print("No")
else:
  	n=N//2
    S = input()
    if S[:n]==s[n:] :print("Yes")
    else:print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
if N%2 == 1: print("No")
else:
    S = input()
    if S[:n]==S[n:] :print("Yes")
    else:print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
if N%2 == 1: print("No")
else:
    S = input()
    if S[:n]==s[n:] :print("Yes")
    else:print("No")

Submission status: Runtime Error

Solution code:
Source Code 

Copy
Copy
N = input()
S = str(input())
 
if N + 2 // 2 == 1:
  print('No')
 
else:
  f = int((N/2)-1)
  b = int(N/2)
  front = S[:f]
  back = S[b:]
  if front == back:
    print('Yes')
  else:
    print('No')

Submission status: Runtime Error

Solution code:
N = input()
S = str(input())

if N + 2 // 2 == 1:
  print('No')

else:
  f = int(N/2)
  b = int(N/2)
  front = S[:f]
  back = S[b:]
  if front == back:
    print('Yes')
  else:
    print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
chars = input()
if n%2 ==0:
    k = n/2
    if chars[:k] == chars[k:]:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = str(input())

if n%2 != 0:
  print('No')
elif s == s[:n/2]*2:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
s = str(input())

if s%2 != 0:
  print('No')
elif s == s[:n/2]*2:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
x=int(input())
string=input()
if x%2=1:
  print("No")
else:
  if string[:x/2]==string[x/2:]
  	print("Yes")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
a = int(input())

s = string(input())

if a % 2 == 1:
  print("No")
else:
  b = int(a/2)
  if s[:b] == s[b:]:
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
a = int(input())

s = string(input())

if a % 2 == 1:
  print("No")
else:
  b = a/2
  if s[:b] == s[b:]:
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
if n%2 != 0 or n == 1:
  prtin("No")
elif s[:int(n/2)] == s[int(n/2):]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
if n%2 != 0.0:
  prtin("No")
elif s[:int(n/2)] == s[int(n/2):]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
if n%2 != 0:
  prtin("No")
elif s[:int(n/2)] == s[int(n/2):]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
if n%2 != 0:
  prtin("No")
elif s[int(:n/2)] == s[int(n/2):]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
if(n%2==1):
  print("No")
else:
  s = input()
  a = s[:n/2]
  b = s[n/2:]
  if(a==b):
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = [str(x) for x in input()]
if n % 2 == 1:
    print('No')
else:
    if s[:((n/2)+1)] == s[((n/2)+1)]:
        print('Yes')
    else:
        print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
h = N/2
if S[0:h] == S[h:N]
	return Yes
return No

Submission status: Runtime Error

Solution code:
n=int(input())
k=n/2;
s=input()
p=s[k:]
t=s[:k]
if p=t print 'Yes' else print 'No'

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
if N % 2 != 0:
    print("No")
else:
    if S[0:N/2] == S[N/2:]:
        print("Yes")
    else:
        print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
     
if s[:n/2] == s[n/2:]:
	print("Yes")
else:
	print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

if s[:n/2] == s[n/2:]:
	print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

if n % 2 != 0 or s[:n/2] != s[n/2:]:
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
N = int(input())
S = str(input())

if N%2==1:
    print('No')
    sys.exit()

S_1 = S[:N//2]

S_2 = S_1+S_1
if S == S_2:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = str(input())

if N%2==0:
    N = int(N)
else:
    print('No')
    sys.exit()
S_1 = S[:N//2]

S_2 = S_1+S_1
if S == S_2:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = str(input())
S = list(S)

if N%2 != 0:
    print('No')
    exit()

S1, S2 = [], []
for i, s in enumerate(S):
    if i < (N/2):
        s1.append(s)
    else:
        s2.append(s)

s1, s2 = ' ', ' '
for s in S1:
    s1 += s

for s in S2:
    s2 += s

if s1 ==s2:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
S = str(input())
S = list(S)

if N%2 != 0:
    print('No')
    exit()

S1, S2 = [], []
for i, s enumerate(S):
    if i < (N/2):
        s1.append(s)
    else:
        s2.append(s)

s1, s2 = ' ', ' '
for s in S1:
    s1 += s

for s in S2:
    s2 += s

if s1 ==s2:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
#include<iostream>
#include<string>

using namespace std;

string S;
int N;

void input(){
  cin >> N;
  cin >> S;
}

void solve(){
  input();
  string tmp = "No";
  int K = N/2;
  if(N%2==0 && S.substr(0,K)==S.substr(K,K)) tmp="Yes";
  cout << tmp <<endl;
  return;
}

int main(){
  solve();
  return 0;
}

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
if len(s)%2==1:
  print('No')
else:
  i=len(s)/2
  j=i//1
  if s[:j]+s[:j]==s:
    print('Yes')

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
if len(s)%2==1:
  print('No')
else:
  i=len(s)/2
  j=i//1
  if s[:j]+s[:j]==s:
    print(Yes)

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
if len(s)%2==1:
  print('No')
else:
  i=len(s)/2//1
  if s[:i]*2==s:
    print(Yes)

Submission status: Runtime Error

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

print('Yes') if S[:len(S)/2] == S[len(S)/2:] else print('No')

Submission status: Runtime Error

Solution code:
total = int(input())
s = input()
 
if total%2 == 1:
  print("No")
else:
  if(s[:total/2] is s[total/2:]):
    print("Yes")
  else:
      print("No")

Submission status: Runtime Error

Solution code:
total = int(input())
s = input()
 
if total%2 == 1:
  print("No")
else:
  if(s[:total/2]==s[total/2:]):
    print("Yes")
  else:
      print("No")

Submission status: Runtime Error

Solution code:
total = int(input())
s = input()

if total%2 == 1:
  print("No")
else:
	if(s[:total/2]==s[total/2:]):
		print("Yes")
	else:
		print("No")

Submission status: Runtime Error

Solution code:
int(input())=n
input()=s
if s[0;n//2-1] == s[n//2;n-1]:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = int(input)
s = input()
if s[0;n//2-1] ==s[n//2;n-1]:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
if n % 2 = 0 and s[0 , n//2 - 1] =s[n//2 , n - 1]:
  print('Yes')
 else:
  print('No')

Submission status: Runtime Error

Solution code:
n,s = input().sprit()
n = int(n)
 
if n%2 == 0 :
	if s[:2/n-1] == s[2/n:]:
      print('Yes')
    else:
      print('No')
else:
	print('No')

Submission status: Runtime Error

Solution code:

n,s = input().sprit()
n = int(n)

if n%2 ==0:
	if s[:2/n-1] == s[2/n:]:
      print('Yes')
    else:
      print('No')
else:
	print('No')

Submission status: Runtime Error

Solution code:
s = input()
n = len(s)
if n%2==1 or s[:n//2]==s[n//2:] :
    print("No")
else:
    print("Yes")
return 0

Submission status: Runtime Error

Solution code:
s = input()
n = len(s)
if n%2==1 or s[:n/2]==s[n/2:]:
    print("No")
else:
    print("Yes")
return 0

Submission status: Runtime Error

Solution code:
s = input()
n = len(s)
if n%2==1 or s[:n//2]==s[n//2:]:
    print("No")
else:
    print("Yes")
return 0

Submission status: Runtime Error

Solution code:
s = input()
if len(s)%2==1 or s[:len(s)//2]==s[len(s)//2:]:
    print("No")
else:
    print("Yes")
return 0

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
s = [a for a in s]
if len(s) == 1:
    print("No")
    exit()
if s[:n/2] == s[n/2:]:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
str_num = input()
input_str = input()
input_array = list(input_str)

match_num = 0
int_str_num =int(str_num)

if int_str_num % 2 == 0:
  half_str_num = int_str_num/2
  int_half_str_num = int(half_str_num)
  for i in range(int_half_str_num):
    if input_array[i] == input_array[i+int_half_str_num]:
      match_num = match_num + 1
    
  if n == half_str_num:
    print('Yes')
  else:
    print('No')
else:
  print('No')

Submission status: Runtime Error

Solution code:
//不正解

n = int(input())
s = input()
x = int(n/2)

if n%2 != 0:
    print("No")
elif s[:x] == s[x+1:]:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
count=0
if N%2!=0:
  print("No")
else:
  for i in range(len(S)/2):
    if S[i]!=S[len(S)/2+i]:
      print("No")
      break
    count+=1
  if count==len(S)/2:
    print("Yes")

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
count=0
if N%2!=0:
  print("No")
else:
  for i in range(len(S)/2):
    if S[i]!=S[len(S)/2+i]:
      print("No")
      break
    count+=1
  if count=len(S)/2:
    print("Yes")

Submission status: Runtime Error

Solution code:
n=int(input())
t=input()
T=list(t)

num=n/2

if T[0:num]==T[num:6]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n=int(input)
t=input()
T=list(t)

if T[0:3]==T[3:6]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
# coding: utf-8
N=int(input())
S=input()
if S[:N/2]==S[N/2:]: print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
if N%2 == 1: print("No")
elif S[:N/2] == S[N/2:]:print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
if N%2 == 1: print("No")
elif S[:N/2] == S[N/2:] print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()

flag=True

if(n%2):
  flag=False
elif!(s[0:int(n/2)-1]==s[int(n/2):]):
  flag=False

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

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
H = list(S)
P = len(H)
oo = []
ll = []
if P%2 == 0:
  for a in range (0,N/2):
    oo.append(H(a))
    ll.append(H(a+N/2))
    if oo == ll :
      print("Yes")
else :
  print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
H = list(S)
P = len(H)
oo = []
ll = []
if P%2 == 0:
  for a in range (0,N/2):
    oo.append(a)
    ll.append(a+N/2)
    if oo == ll :
      print("Yes")
else :
  print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = str(input())
if N % 2 != 0:
    print("No")
if S[0:N/2] * 2 == S:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = str(input())
if S[0:N * 0.5] * 2 == S:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = str(input())
if S[0:N/2] * 2 == S:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = str(input())
if S[0:N/2] * 2 = S:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = int(input())
if S[0:N/2] * 2 = S:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
a = int(input())
str = list(input())

if a%2 :
	print("No")
	exit()
  
n_str_1 = ""
n_str_2 = ""
  
fot i in range(a/2):
	n_str_1 += str[i]
    n_str_2 += str[i+a/2]

if n_str_1 == n_str_2 :
	print("Yes")
else :
  	print("No")

Submission status: Runtime Error

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

if len(S) % 2 != 0:
    print("No")
else:
    if S[:(len(S) / 2)] == S[(len(S) / 2) :]:
        print("Yes")
    else:
        print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = list(input())

if n % 2 == 1:
    print('No')
    exit()

print('Yes') if s[:n/2] == s[n/2:] else print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
S = int(input())
if N % 2 != 0:
    print("No")
else:
    arr = list(S)
    s_len = len(arr) // 2
    if arr[s_len:] == arr[:s_len]:
        print("Yes")
    else:
        print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
l = len(S)
flg = 0
if l%2 == 1:
	flg = 1
	print("No")
else:
	for i in range(int(l/2)):
		//print(S[i],S[i+int(l/2)])
		if S[i] != S[i+int(l/2)]:	
			print("No")
			flg = 1
			break
if flg == 0:
	print("Yes")

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
l = len(S)
flg = 0
if l%2 == 0:
	flg = 1
	print("No")
else:
	for i in range(l/2):
		if S[i] != S[i+l/2]:	
			print("No")
			flg = 1
            break
if flg == 0:
	print("Yes")

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
ans=0
if N%2==0:
  for i in range(N/2):
    if S[i]==S[i+(N/2)]:
      ans+=1
if ans==N/2:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
ans=0
if N%2==0:
  for i in range(N/2):
    if S[i]==S[i+N/2]:
      ans+=1
if ans==N/2:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
if n % 2 == 1:
  print("No")
else:
  s1 = s[:n/2+1]
  s2 = s[n/2+1:]
  if s1 == s2:
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

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

if N % 2 === 1:
    print('No')
elif S[:N/2] == S[N/2:]:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

if n % 2 != 0:
  print("No")
else:
  half = n // 2
  found = False
  for i in range(0, half + 1):
    if s[i] != s[half + i]:
      found = True
      break
  print("No" if found else "Yes")

Submission status: Runtime Error

Solution code:
N , K =map(int,input().split())
H = list(map(int,input().split()))
H.sort()
HAKO = []
for i in range(N):
  if H[i] >= K:
    HAKO.append(H[i])
print(len(HAKO))

Submission status: Runtime Error

Solution code:
N = int(input())

S = input()

ans = True
for i in range(N):
  if S[i] != S[i + N / 2]:
    ans = False
    
if ans:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
if S[0:N//2] == S[N//2:N]:
    print("yes")
    
elif S[0:N//2] != S[N//2:N]
    print("No")

else:
    print("No")

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
print(["No","Yes"][s[:int(n/2)]]==s[int(n/2):])

Submission status: Runtime Error

Solution code:
n = int(input())
if n / 2 % == 1:
  print("No")
  exit()
s = input()
if s[:n/2] == s[n/2:]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())  
s = input()
if s[:n/2] == s[n/2:]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
if n / 2 % == 1:
  print("No")
  return
s = input()
if s[:n/2] == s[n/2:]:
  print("Yes")
else:
  print("No")