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

Solution (Python):
n = int(input())
s = input()
ans ="Yes"
if n%2==1:ans="No"
else:
	for i in range(n//2):
		if s[i]!=s[n//2+i]:ans="No"
print(ans)

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

Solution (Python):
def main():
    N = int(input())
    S = input()
    if N % 2 == 1:
        print("No")
        quit()
    n = N // 2
    yesno = "Yes" if S[:n] == S[n:] else "No"
    print(yesno)


if __name__ == "__main__":
    main()

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

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

if n % 2 != 0:
    print('No')
else:
    a = s[:len(s)//2]
    b = s[len(s)//2:]
    print(['No', 'Yes'][a == b])

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


if N %2 == 1:
    print("No")

elif S[:N//2] == S[N//2:]:
    print("Yes")
    
else:
    print("No")

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

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

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

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

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

Solution (Python):
n=int(input())
s=input()
a=0

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

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

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

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

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

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

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

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

Solution (Python):
n=int(input())
s=input()
if n%2!=0:
  print("No")
else:
  t1=s[:n//2]
  t2=s[n//2:]
  
  if t1==t2:
    print("Yes")
  else:
    print("No")

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

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

Solution (Python):
n=int(input())
s=str(input())
s=list(s)
if n%2==1:
  print("No")
else:
  temp1=s[-int(n/2):]
  temp2=s[:-int(n/2)]
  for i in range(0,int(n/2)):
    if temp1[i]!=temp2[i]:
      print("No")
      break
  else:
    print("Yes")

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

if n % 2 == 1:
    print("No")
    exit()
else:
    n = n//2 
    for i in range(n):
        if s[i] != s[i+n]:
            print("No")
            exit()

print("Yes")

Solution (Python):
import sys
n = int(input())
if n % 2:
	print("No")
	sys.exit()
s = input()
print("No" if s[:n // 2] != s[n // 2:] else "Yes")

Solution (Python):
n=int(input())
if n<2:
  print("No")
  exit()
if n%2!=0:
  print("No")
  exit()
s=list(input())
if s[0:n//2]!=s[n//2:n]:
  print("No")
  exit()
print("Yes")

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

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

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

Solution (Python):
N = input()
A = str(input())

if (A[0:int(len(A)/2)])==(A[int(len(A)/2):]):
  print("Yes")
else:
  print("No")

Solution (Python):


n = int(input())
s = list(str(input()))

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

Solution (Python):
N = int(input())
S = input()
T = list()
for i in range(int(N / 2), N):
    t = S[i]
    T.append(t)
y = 0
n = 0
for i, k in zip(T, S):
    if i == k:
        y += 1
    else:
        n += 1
if int(N % 2) != 0:
    print('No')
elif y == int(N / 2):
    print('Yes') 
else:
    print('No')

Solution (Python):
N = int(input())
S = input()
T = list()
for i in range(int(N / 2), N):
    t = S[i]
    T.append(t)
y = 0
n = 0
for i, k in zip(T, S):
    if i == k:
        y += 1
    else:
        n += 1
if N % 2 != 0:
    print('No')
elif y >= int(N / 2):
    print('Yes') 
else:
    print('No')

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

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

for i in range(int(N/2)):
    if S[i] != S[i+int(N/2)]:
        print('No')
        exit()

print('Yes')

Solution (Python):
import math
import time
from collections import defaultdict, deque
from sys import stdin, stdout
from bisect import bisect_left, bisect_right
n=int(input())
s=input()
if(n%2):
    print("No")
elif(s[:n//2]==s[n//2:]):
    print("Yes")
else:
    print("No")

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

if len(S)==1:
    print("No")
elif len(S)%2==0:
    A=N/2
    MAE=S[:int(A)]
    
    B=N/2
    USHIRO=S[int(B):]
    
    
    if MAE==USHIRO:
        print("Yes")
    else:
        print("No")
    
else:
    print("No")

Solution (Python):
n = int(input())
s = list(input())
a = s[:n//2]
b = s[n//2::]

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

Solution (Python):
n = int(input())
s = input()
a = 0
if n%2 == 0:
  for i in range (n//2):
    if s[i] == s[n//2+i]:
      continue
    else:
      a = 1
      break
else:
  a = 1
print('Yes' if a==0 else 'No')

Solution (Python):

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

Solution (Python):
n = int(input())
S = input()
if S[:n // 2] == S[-n // 2:]:
    print('Yes')
else:
    print('No')

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

Solution (Python):
N = int(input())
S = list(input())
if (len(S) % 2 )==0:
  s = N//2
  if S[:s]==S[s:]:
    print("Yes")
  else:print("No")
else:
  print("No")

Solution (Python):

n = int(input())
s = input()

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

Solution (Python):
N = int(input())
S = str(input())
T = S[0:N//2]
if S == (T+T):
    print('Yes')
else:
    print('No')

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

l = s[:len(s)//2]
if s == l+l:
    print("Yes")
else: print("No")

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

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

Solution (Python):
n=int(input())
s=input()
s1=''
s2=''
for i in range(0,int(n/2)):
    s1+=s[i]
for j in range(int(n/2),n):
    s2+=s[j]
if s1==s2:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):

N = int(input())
S = input()


if N < 2 or N % 2 != 0:
    print("No")
else:
    if N == 2:
        right = S[0]
        left = S[1]
    else:
        c = N // 2
        right = S[0:c]
        left = S[c:]

    if right == left:
        print("Yes")
    else:
        print("No")

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

Solution (Python):
N = int(input())
S = input()
if not N%2==0:
    print('No')
else:
    if S == 2*S[:N//2]:
        print('Yes')
    else:
        print('No')

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

N = int(input().rstrip())
S = input().rstrip()

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

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

N = int(input().rstrip())
S = input().rstrip()

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

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

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

if n % 2 == 1:
    print("No")
else:
    l = len(a)//2
    v, k = a[:l], a[l:]
    if v == k:
        print("Yes")
    else:
        print("No")

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

Solution (Python):



import sys
from collections import defaultdict, deque
from heapq import heappush, heappop
import math
import bisect




N = int(input())
S = input()
num = len(S)
if num % 2 == 1:
    print('No')
    sys.exit()

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

Solution (Python):
n = int(input())
s = input()
mid = int(n/2)

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

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

if(n%2 == 0):
  usiro = int(n/2)
  mae = int(n/2)
else:
  print("No")
  exit()

if(s[0:mae] == s[usiro:]):
  print("Yes")
else:
  print("No")

Solution (Python):

if __name__ == "__main__":
    N = int(input())
    S = input()
    N2 = int(N / 2)
    print( "Yes") if S[:N2] == S[N2:] else print( "No")

Solution (Python):
input()
s = input()
mid = len(s) // 2

if s[:mid] == s[mid:]:
    print('Yes')
else:
    print('No')

Solution (Python):
def recta():
    N = int(input())
    S = input()
    if N % 2 == 0:
        N_2 = int(N / 2)
        if str(S[:N_2]) == str(S[N_2:]):
            print('Yes')
        else:
            print('No')
    else:
        print('No')


if __name__ == "__main__":
    recta()

Solution (Python):
n=int(input())
s=input()
if n%2!=0:
  print('No')
else:
  if s[:n//2]==s[n//2:]:
    print('Yes')
  else:
    print('No')

Solution (Python):
import fileinput

n = int(input())

if n % 2 != 0:
    print("No")
    exit(0)

s = input()

if s[0:int(len(s) / 2)] == s[int(len(s) / 2):]:
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())
s = input()
if n%2==1:
  print("No")
else:
  n = n//2
  for i in range(n):
    if s[i] != s[i+n]:
      print("No")
      break
  else:
    print("Yes")

Solution (Python):
n = int(input())
s = input()
if n % 2 != 0:
	print('No')
else:
	if s[:n // 2] == s[n // 2:]:
		print('Yes')
	else:
		print('No')

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

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

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

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

Solution (Python):
n = int(input())
S = input()
s = list(S)
p = 1
if n % 2 == 0:
    for i in range(n//2):
        if s[i] == s[i + n//2]:
            continue
        else:
            p = 0
else:
    p = 0
if p == 1:
    print('Yes')
else:
    print('No')

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

Solution (Python):

def main():
    n = int(input())
    s = input()
    if n % 2 == 0:
        for i in range(n//2):
            if s[i] != s[i+n//2]:
                print('No')
                exit()
        else:
            print('Yes')
    else:
        print('No')
        exit()


if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
s = input()
sh = s[0:n//2]
if s == sh + sh:
    print('Yes')
else:
    print('No')

Solution (Python):

def main():
    _len = int(input())
    _str = input()

    if _len < 0 or _len > 100 or _len % 2 : 
        print("No")
        return
    idx = int(_len/2)
    a, b = _str[:idx], _str[idx:]

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


if __name__ == '__main__':
    main()

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

Solution (Python):
n = int(input())
s = input()
if n % 2 != 0:
    print('No')
else:
    if s[:n//2] == s[n//2:]:
        print('Yes')
    else:
        print('No')

Solution (Python):
N = int(input())
S = input()
ans = 'Yes'
if N%2 != 0:
    ans = 'No'
if S[:(N//2)] != S[(N//2):]:
    ans = 'No'
print(ans)

Solution (Python):
n=int(input())
s=input()
m=0
if n%2==0:
    for i in range(n//2):
        if s[i]==s[i+n//2]:
            m+=1
print("Yes" if m==(n/2) else "No")

Solution (Python):
r = int(input())
s = input()
 
i = int(r/2)
before = s[i:]
after = s[:i]
 
if before == after:
	print('Yes')
else:
  	print('No')

Solution (Python):
n = int(input())
s = input()
cnt = 0
if n % 2 == 0:
    for i in range(n//2):
        if s[i] == s[i + n // 2]:
            cnt += 1

if n % 2 == 1:
    print('No')
else:
    if cnt == n // 2:
        print('Yes')
    else:
        print('No')

Solution (Python):
def main():
    N = int(input())
    S = input()
    if (N % 2 == 1):
        print('No')
    else:
        mid = N // 2
        print('Yes' if (S[:mid] == S[mid:]) else 'No')
    return 0
    
if __name__ == '__main__':
    main()

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

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

Solution (Python):
import math
n = math.floor(int(input())/2)
s = input()
a = s[n:]
b = s[:n]
if a == b:
  print('Yes')
else:
  print('No')

Solution (Python):
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop
from itertools import permutations, accumulate, combinations, combinations_with_replacement
from math import sqrt, ceil, floor, factorial
from bisect import bisect_left, bisect_right
from copy import deepcopy
from operator import itemgetter
from functools import reduce


import sys
def I(): return int(input())
def Is(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def TI(): return tuple(map(int, input().split()))
def IR(n): return [I() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def TIR(n): return [TI() for _ in range(n)]
def S(): return input()
def Ss(): return input().split()
def LS(): return list(input())
def SR(n): return [S() for _ in range(n)]
def SsR(n): return [Ss() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
sys.setrecursionlimit(10**6)
MOD = 10**9+7
INF = float('inf')



n = I()
s = S()

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

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

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

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

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

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

Solution (Python):


import sys
input= lambda: sys.stdin.readline().rstrip()
sys.setrecursionlimit(10**9)
def pin(type=int):return map(type,input().split())
def tupin(t=int):return tuple(pin(t))
def lispin(t=int):return list(pin(t))

def resolve():
    N,=pin()
    S=input()
    if N%2!=0:print("No");return
    for i in range(N//2):
        if S[i]!=S[i+(N//2)]:
            print("No");return
    
    print("Yes")

resolve()

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

Solution (Python):
length = int(input())
s = input()

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

Solution (Python):
length = int(input())
s = input()

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

Solution (Python):


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

Solution (Python):
N,S=int(input()),input()
a,b='',''
if N%2==0:
    for i in range(int(N/2)):
        a = a+S[i]
        b = S[len(S)-(i+1)]+b
    print('Yes' if a==b else 'No')
else:
    print('No')

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

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

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

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

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

Solution (Python):
import sys
sys.setrecursionlimit(10 ** 6)

int1 = lambda x: int(x) - 1
def II(): return int(input())

def MI(): return map(int, input().split())
def MI1(): return map(int1, input().split())

def LI(): return list(map(int, input().split()))
def LI1(): return list(map(int1, input().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

def printlist(lst, k='\n'): return k.join(list(map(str, lst)))
INF = float('inf')

def solve():
    n = II()
    S = list(input())

    if n % 2 == 0:
        h = n // 2
        if S[:h] == S[h:]:
            print('Yes')
            return
    print('No')


if __name__ == '__main__':
    solve()

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

S_right=[]
S_left=[]
for i in range(0,(N//2)):
    S_left.append(S[i])
for i in range((N//2),N):
    S_right.append(S[i])
    
S_left=("").join(S_left)
S_right=("").join(S_right)

print("Yes" if S_left==S_right else "No")

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

Solution (Python):
import sys

n = int(input())
s = input()

if(n % 2 == 1):
  print('No')
else:
  for i in range(n//2):
    if(s[i] != s[n//2 + i]):
      print('No')
      sys.exit()

  print('Yes')

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

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

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

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

Solution (Python):
def main():
    n = int(input())
    if n % 2 != 0:
        print('No')
        exit()
    s = [v for v in input()]
    t = n//2
    if s[0:t] == s[t:]:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
s = input()
half = int(n/2)

f = s[:half] 
l = s[half:n]

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

Solution (Python):
n = int(raw_input())
s = raw_input()

head = s[0:(n/2)]
tail = s[(n/2):]

result = 'No'
if head == tail:
    result = 'Yes'

print(result)

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

if n % 2 != 0:
  ans = 'No'
else:
  if s == s[:n//2] * 2:
    ans = 'Yes'
  else:
    ans = 'No'

print(ans)

Solution (Python):
import sys
n=int(input())
s=list(input())
count=0
if len(s)==1:
    print("No")
    sys.exit()
else:
    for i in range(len(s)//2):
        if len(s)%2==0 and s[i]==s[i+len(s)//2]:
            count+=0
        else:
            print("No")
            sys.exit()
print("Yes")

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

if n % 2 != 0:
  print("No")
else:
  t = s[:int(n/2)]
  if t * 2 == s:
    print("Yes")
  else:
    print("No");

Solution (Python):
n = int(input())
S = input()
L = S[: (n // 2)]
R = S[(n // 2) :]
if L == R:
    print('Yes')
else:
    print('No')

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

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

mid = s[:n//2]
last = s[n//2:]

if mid == last:
    print("Yes")
else:
    print("No")

Solution (Python):
str_len = int(input())
input_str = str(input())
half = int(int(str_len)/2)
if(str_len % 2 == 0 and input_str[0:half] == input_str[half:str_len]):
  print("Yes")
else:
  print("No")

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

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

else :
  half = int(N/2)

  if S[0:half] == S[half:] :
    print('Yes')
  else :
    print('No')

Solution (Python):
N=int(input())
S=input()
if N%2==1:
    print('No')
    exit()
V=int(N/2)
S1=S[0:V]
S2=S[V:N]
if S1==S2:
    print('Yes')
else:
    print('No')

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

Solution (Python):
a=int(input())
b=input()
if b[0:a//2]==b[a//2:]:
  print('Yes')
else:
  print('No')

Solution (Python):

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

Solution (Python):
input()
s=input()
half=int(len(s)/2)
print("Yes" if s[:half]==s[half:] else "No")

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

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

Solution (Python):
n = int(input())
s = input()
if n % 2 != 0:
    print("No")
    quit()

first = ""
second = ""
for i in range(n // 2):
    first += s[i]
    second += s[i+(n//2)]
if first == second:
    print("Yes")
else:
    print("No")

Solution (Python):
N = int(input())
S = input()
P = int(N/2)
T = S[0:int(P)]
Q=T+T
if S in Q:
    print("Yes")
else:
    print("No")

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

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

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

S_pre = S[:int(N/2)]
S_aft = S[int(N/2):]

flg=0
for i in range(len(S_pre)):
    if S_pre[i] != S_aft[i]:
        flg+=1

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

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

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

if len(S) %2:
  print("No")


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

Solution (Python):
def resolve():
    import sys
    n=int(input())
    s=input()
    if n%2==1:
        print("No")
        sys.exit()
    for i in range(n//2):
       if s[i]!=s[i+n//2]:
          print("No")
          sys.exit()
    print("Yes")
resolve()

Solution (Python):
n = int(input())
s = str(input())
flag = False

if n%2==0:
    a = n//2
    if s[:a]==s[a:]:
        flag = True
        

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

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


def judge(s):
    if len(s) % 2 == 1:
        print("No")
        return
    for i in range(0, len(s)//2):
        if(s[i] != s[len(s)//2 + i]):
            print("No")
            return
    print("Yes")
    return


judge(s)

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

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

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

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

Solution (Python):
n=int(input())
s=str(input())
if n%2==0 and s[:n//2]==s[n//2:]:
    print("Yes")
else:
    print("No")

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

Solution (Python):
n=int(input())
s=input()
if n%2 ==0:
	tmp=s[int(n*0.5):n]
	if s[0:int(n*0.5)]==tmp:
		print('Yes')
	else:
		print('No')
else:
	print('No')

Solution (Python):

def main():
    N = int(input())
    S = input()
    f = S[:int(N/2)]
    b = S[int(-(-N//2)):]
    if f==b and N%2==0:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

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

else:
    print('No')

Solution (Python):
import sys, math
from pprint import pprint
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input())
rl = lambda: list(map(int, input().split()))
mod = 10**9 + 7

N = ri()
S = rs()

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

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

Solution (Python):

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

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

Solution (Python):


N = int(input())
S = input()
N_2 = int(N / 2)

if N % 2 == 0:
    if S[:N_2] == S[N_2:]:
        print("Yes")
    else:
        print("No")
else:
    print("No")

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

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

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

Solution (Python):
n = int(input())
s = str(input())
if n % 2 !=0:
  print('No')
else:
  if s[0:int(n/2)] == s[int(n/2):int(n)]:
    print('Yes')
  else:
    print('No')

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

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

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

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

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

Solution (Python):


def main():
    N, S = map(str, open(0).read().split())
    N = int(N)
    if not N % 2 == 0:
        print('No')
    else:
        if (S[0:N//2] == S[-(-N//2):]):
            print('Yes')
        else:
            print('No')


main()

Solution (Python):
N=int(input())
S=input()
r,l=[],[]
for i in range(N):
    if i<N/2:
        l+=S[i]
    else:
        r+=S[i]
if l==r:
    print('Yes')
else:
    print('No')

Solution (Python):

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

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

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

if n % 2 == 1:
    print("No")
else:
    for i in range(round(n/2)):
        if li[i] == li[round(n/2) + i]:
            pass
        else:
            print("No")
            exit()
    print("Yes")

Solution (Python):
n=int(input())
s=input()
t=s[0:n//2]
if s.count(t)==2 and n%2==0:
	print("Yes")
else:
	print("No")

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

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

Solution (Python):
N = int(input())
n = N // 2

S = input()
s = S[0:n]

if S == s + s:
  print('Yes')
else:
  print('No')

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

ans = "No"

if n%2 == 0:
  half = n//2
  if s[0:half] == s[half:n]:
    ans = "Yes"
    
print(ans)

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

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

Solution (Python):
N=int(input())
S=input()
ans="Yes"
if N%2!=0:
    ans="No"

for i in range(N//2):
    if(S[i]!=S[i+(N//2)]):
        ans="No"

print(ans)

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

if n % 2 == 0:
    n //= 2
else:
    print("No")
    exit()
s2 = s[n:]
for i in range(n):
    if s[i] != s2[i]:
        print("No")
        exit()
print("Yes")

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

Solution (Python):
n = int(input())
s = input()
if n%2 != 0:
  print('No')
else:
  a = s[:(n//2)]
  b = s[(n//2):]
  if a == b:
    print('Yes')
  else:
    print('No')

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

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

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(N: int, S: str):
    if N % 2 == 1:
        print(NO)
        return
    elif S[: N // 2] != S[N // 2:]:
        print(NO)
        return
    print(YES)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  
    S = next(tokens)  
    solve(N, S)


if __name__ == '__main__':
    main()

Solution (Python):
import sys
n = int(input())
s = input()
if len(s) % 2 == 1:
    print('No')
    sys.exit(0)
flag = True
for i in range(len(s)//2):
    if s[i] != s[i+len(s)//2]:
        flag = False
        break
if flag:
    print('Yes')
else:
    print('No')

Solution (Python):
N = int(input())
S = input()
T1 = []
T2 = []
if N%2 == 1:
  print("No")
else:
  for i in range(int(N/2)):
    T1.append(S[i])
  for i in range(int(N/2),N):
    T2.append(S[i])
  if T1 == T2:
    print("Yes")
  else:
    print("No")

Solution (Python):
a = int(input())
s = input()
i=0
t = ""

for i in range(int(a/2)):
    t += s[i]

t += t
if t == s:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys
n = int(sys.stdin.readline())
s = sys.stdin.readline().strip()
if not n % 2:
  if s[0:n//2] == s[n//2:]:
    print('Yes')
  else:
    print('No')
else:
  print('No')

Solution (Python):
N = int(input())
S = input()
cnt = 0

if N%2 != 0:
  print("No")
  exit()
  
for i in range(N//2):
  if S[i] == S[N//2+i]:
    cnt += 1
if cnt == N//2:
  print("Yes")
else:
  print("No")

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

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

Solution (Python):
import os

def main():
	n = int(input())
	s = input()
	flag = True
	if n%2 != 0:
		flag = False
	else:
		n = n//2
		if s[n:] != s[:n]:
			flag = False
	if flag:
		print("Yes")
	else:
		print("No")

if __name__ == "__main__":
	main()

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

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

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

Solution (Python):
import math
N = int(input())
S = input()
if N % 2 == 1:
    print("No")
    exit()

S_fommer = S[:math.floor(N/2)]
S_latter = S[math.ceil(N/2):]

if S_fommer == S_latter:
    print("Yes")
else:
    print("No")

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

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

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

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