n = int(eval(input()))

s = eval(input())

flag = 1



if n % 2:

    print('No')

else:

    for i in range(n//2):

        if s[i] != s[n//2 + i]:

            flag = 0

    if flag:

        print('Yes')

    else:

        print('No')
n = int(eval(input()))

s = eval(input())

flag = 1



if n % 2:

    print('No')

else:

    if s.count(s[0:n//2]) == 2:

        print('Yes')

    else:

        print('No')
n = int(eval(input()))
s = eval(input())
flag = 1
if n % 2:
    print("No")
else:
    for i in range(n // 2):
        if s[i] != s[n // 2 + i]:
            flag = 0
    if flag:
        print("Yes")
    else:
        print("No")

n = int(eval(input()))
s = eval(input())
flag = 1
if n % 2:
    print("No")
else:
    if s.count(s[0 : n // 2]) == 2:
        print("Yes")
    else:
        print("No")

-    for i in range(n // 2): -        if s[i] != s[n // 2 + i]: -            flag = 0 -    if flag: +    if s.count(s[0 : n // 2]) == 2: