N = eval(input())

S = eval(input())

index = len(S) // 2



if len(S) % 2 != 0:

  print('No')

elif S[:index] != S[index:]:

  print('No')

else:

  print('Yes')

N = int(input())

str_input = input()

 

if N % 2 != 0:

  print('No')

else:

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

N = eval(input())
S = eval(input())
index = len(S) // 2
if len(S) % 2 != 0:
    print("No")
elif S[:index] != S[index:]:
    print("No")
else:
    print("Yes")

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

-N = eval(input()) -S = eval(input()) -index = len(S) // 2 -if len(S) % 2 != 0: -    print("No") -elif S[:index] != S[index:]: +N = int(input()) +str_input = input() +if N % 2 != 0: -    print("Yes") +    print("Yes") if str_input[: N // 2] == str_input[(N // 2) :] else print("No")