n = int(eval(input()))

s = eval(input())

a = []

b = []

count = 1

for i in s:

  if count > (n/2):

    a.append(i)

  else:

    b.append(i)

  count += 1

if a == b:

  print("Yes")

else:

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

s = eval(input())

h = l // 2

if l % 2 == 1:

  print("No")

else:

  flag = True

  for i in range(0, h):

    if s[i] != s[i + h]:

      flag = False

      break

  if flag:

    print("Yes")

  else:

    print("No")
n = int(eval(input()))
s = eval(input())
a = []
b = []
count = 1
for i in s:
    if count > (n / 2):
        a.append(i)
    else:
        b.append(i)
    count += 1
if a == b:
    print("Yes")
else:
    print("No")

l = int(eval(input()))
s = eval(input())
h = l // 2
if l % 2 == 1:
    print("No")
else:
    flag = True
    for i in range(0, h):
        if s[i] != s[i + h]:
            flag = False
            break
    if flag:
        print("Yes")
    else:
        print("No")

-n = int(eval(input())) +l = int(eval(input())) -a = [] -b = [] -count = 1 -for i in s: -    if count > (n / 2): -        a.append(i) +h = l // 2 +if l % 2 == 1: +    print("No") +else: +    flag = True +    for i in range(0, h): +        if s[i] != s[i + h]: +            flag = False +            break +    if flag: +        print("Yes") -        b.append(i) -    count += 1 -if a == b: -    print("Yes") -else: -    print("No") +        print("No")