N = int(eval(input()))

S = input().strip()

if N%2==1:

    flag = "No"

else:

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

        flag = "Yes"

    else:

        flag = "No"

print(flag)
N = int(eval(input()))

S = input().strip()

if N%2==1:

    print("No")

else:

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

        print("Yes")

    else:

        print("No")
N = int(eval(input()))
S = input().strip()
if N % 2 == 1:
    flag = "No"
else:
    if S[: N // 2] == S[N // 2 :]:
        flag = "Yes"
    else:
        flag = "No"
print(flag)

N = int(eval(input()))
S = input().strip()
if N % 2 == 1:
    print("No")
else:
    if S[: N // 2] == S[N // 2 :]:
        print("Yes")
    else:
        print("No")

-    flag = "No" +    print("No") -        flag = "Yes" +        print("Yes") -        flag = "No" -print(flag) +        print("No")