#!/usr/bin/env python3

import sys

sys.setrecursionlimit(10000000)

INF = 1<<32



YES = "Yes"  # type: str

NO = "No"  # type: str



def solve(N: int, S: str):

    if N%2 == 0:

        if S[:N//2] == S[N//2:]:

            print(YES)

            exit()

        

    print(NO)

    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))  # type: int

    S = next(tokens)  # type: str

    solve(N, S)



if __name__ == '__main__':

    main()

#!/usr/bin/env python3

import sys

sys.setrecursionlimit(10000000)

INF = 1<<32



YES = "Yes"  # type: str

NO = "No"  # type: str



def solve(N: int, S: str):

    if S[:N//2] == S[N//2:]:

        print(YES)

    else:

        print(NO)



    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))  # type: int

    S = next(tokens)  # type: str

    solve(N, S)



if __name__ == '__main__':

    main()

#!/usr/bin/env python3
import sys

sys.setrecursionlimit(10000000)
INF = 1 << 32
YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(N: int, S: str):
    if N % 2 == 0:
        if S[: N // 2] == S[N // 2 :]:
            print(YES)
            exit()
    print(NO)
    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))  # type: int
    S = next(tokens)  # type: str
    solve(N, S)


if __name__ == "__main__":
    main()

#!/usr/bin/env python3
import sys

sys.setrecursionlimit(10000000)
INF = 1 << 32
YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(N: int, S: str):
    if S[: N // 2] == S[N // 2 :]:
        print(YES)
    else:
        print(NO)
    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))  # type: int
    S = next(tokens)  # type: str
    solve(N, S)


if __name__ == "__main__":
    main()

-    if N % 2 == 0: -        if S[: N // 2] == S[N // 2 :]: -            print(YES) -            exit() -    print(NO) +    if S[: N // 2] == S[N // 2 :]: +        print(YES) +    else: +        print(NO)