program ABC145_B
integer N
character(200)S
logical check
read*,N
read*,S

check=.true.
if(mod(N,2)==1)check=.false.
if(S(1:N/2)/=S(N/2+1:N))check=.false.

if(check)then
  print"(A)","Yes"
else
  print"(A)","No"
endif
end program