n = int(eval(input()))

s = eval(input())



if n%2!=0:

  print('No')

else:

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

    print('Yes')

  else:

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

s = list(eval(input()))

if n%2!=0: print('No')

else:

  s1 = s[0:n//2]

  s2 = s[n//2:n]

  if s1==s2: print('Yes')

  else: print('No')

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

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

-s = eval(input()) +s = list(eval(input())) -    if s[0 : int(n / 2)] == s[int(n / 2) : n]: +    s1 = s[0 : n // 2] +    s2 = s[n // 2 : n] +    if s1 == s2: