import sys

sys.setrecursionlimit(2147483647)

INF=float("inf")

MOD=10**9+7

input=lambda :sys.stdin.readline().rstrip()

def resolve():

    n=int(eval(input()))

    if(n&1):

        print("No")

        return

    S=eval(input())

    a=S[:n//2]

    b=S[n//2:]

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

resolve()
import sys

sys.setrecursionlimit(2147483647)

INF=float("inf")

MOD=10**9+7

input=lambda:sys.stdin.readline().rstrip()

def resolve():

    n=int(eval(input()))

    if(n&1):

        print("No")

        return



    S=eval(input())

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

resolve()
import sys

sys.setrecursionlimit(2147483647)
INF = float("inf")
MOD = 10**9 + 7
input = lambda: sys.stdin.readline().rstrip()


def resolve():
    n = int(eval(input()))
    if n & 1:
        print("No")
        return
    S = eval(input())
    a = S[: n // 2]
    b = S[n // 2 :]
    print(("Yes" if (a == b) else "No"))


resolve()

import sys

sys.setrecursionlimit(2147483647)
INF = float("inf")
MOD = 10**9 + 7
input = lambda: sys.stdin.readline().rstrip()


def resolve():
    n = int(eval(input()))
    if n & 1:
        print("No")
        return
    S = eval(input())
    print(("Yes" if (S[: n // 2] == S[n // 2 :]) else "No"))


resolve()

-    a = S[: n // 2] -    b = S[n // 2 :] -    print(("Yes" if (a == b) else "No")) +    print(("Yes" if (S[: n // 2] == S[n // 2 :]) else "No"))