n,a=open(0);n=int(n);print(("YNeos"[a[:n//2]!=a[n//2:n]::2]))
n,a=open(0);n=int(n)//2;print(("YNeos"[a[:n]!=a[n:-1]::2]))
n, a = open(0)
n = int(n)
print(("YNeos"[a[: n // 2] != a[n // 2 : n] :: 2]))

n, a = open(0)
n = int(n) // 2
print(("YNeos"[a[:n] != a[n:-1] :: 2]))

-n = int(n) -print(("YNeos"[a[: n // 2] != a[n // 2 : n] :: 2])) +n = int(n) // 2 +print(("YNeos"[a[:n] != a[n:-1] :: 2]))