import math



n = int(eval(input()))

a = list(eval(input()))



even = math.floor(n/2)



b=a[:even]

c=a[even:]



if b==c:

    print("Yes")

else:

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

s = eval(input())



even =n//2



a = s[:even]

b = s[even:]



if a==b:

    print("Yes")

else:

    print("No")
import math

n = int(eval(input()))
a = list(eval(input()))
even = math.floor(n / 2)
b = a[:even]
c = a[even:]
if b == c:
    print("Yes")
else:
    print("No")

n = int(eval(input()))
s = eval(input())
even = n // 2
a = s[:even]
b = s[even:]
if a == b:
    print("Yes")
else:
    print("No")

-import math - -a = list(eval(input())) -even = math.floor(n / 2) -b = a[:even] -c = a[even:] -if b == c: +s = eval(input()) +even = n // 2 +a = s[:even] +b = s[even:] +if a == b: