import sys

input = sys.stdin.readline



#input

N = int(eval(input()))

S = str(eval(input()))



#output

import numpy as np



if N % 2 == 1:

    print("No")

    exit()

else:

    M = int(N/2)

    T = [0] * M

    for i in range(M):

        if S[i] == S[M+i]:

            T[i] = 1

        else:

            continue



if np.sum(T) == M:

    print("Yes")

else:

    print("No")
#input

N = int(eval(input()))

S = str(eval(input()))



#output

if N % 2 == 1:

    print("No")

else:

    M = int(N/2)

    if S[:M] == S[M:]:

        print("Yes")

    else:

        print("No")

import sys

input = sys.stdin.readline
# input
N = int(eval(input()))
S = str(eval(input()))
# output
import numpy as np

if N % 2 == 1:
    print("No")
    exit()
else:
    M = int(N / 2)
    T = [0] * M
    for i in range(M):
        if S[i] == S[M + i]:
            T[i] = 1
        else:
            continue
if np.sum(T) == M:
    print("Yes")
else:
    print("No")

# input
N = int(eval(input()))
S = str(eval(input()))
# output
if N % 2 == 1:
    print("No")
else:
    M = int(N / 2)
    if S[:M] == S[M:]:
        print("Yes")
    else:
        print("No")

-import sys - -input = sys.stdin.readline -import numpy as np - -    exit() -    T = [0] * M -    for i in range(M): -        if S[i] == S[M + i]: -            T[i] = 1 -        else: -            continue -if np.sum(T) == M: -    print("Yes") -else: -    print("No") +    if S[:M] == S[M:]: +        print("Yes") +    else: +        print("No")