n=int(eval(input()))

s=eval(input())

if n %2 !=0:

            print('No')

elif s[:n//2]==s[n//2:]:

            print('Yes')

else:

            print('No')

            

n=int(eval(input()))

s=list(str(eval(input())))

if n%2!=0:

            print('No')

elif len(set(s[:n//2]))!=len(set(s[n//2:])):

            print('No')

elif s[:n//2]!=s[n//2:]:

            print('No')

else:

            print('Yes')

            



                        

                        

n = int(eval(input()))
s = eval(input())
if n % 2 != 0:
    print("No")
elif s[: n // 2] == s[n // 2 :]:
    print("Yes")
else:
    print("No")

n = int(eval(input()))
s = list(str(eval(input())))
if n % 2 != 0:
    print("No")
elif len(set(s[: n // 2])) != len(set(s[n // 2 :])):
    print("No")
elif s[: n // 2] != s[n // 2 :]:
    print("No")
else:
    print("Yes")

-s = eval(input()) +s = list(str(eval(input()))) -elif s[: n // 2] == s[n // 2 :]: +elif len(set(s[: n // 2])) != len(set(s[n // 2 :])): +    print("No") +elif s[: n // 2] != s[n // 2 :]: +    print("No") +else: -else: -    print("No")