program main
 implicit none
 integer n
 character*100 s
 read(*,*) n
 read(*,*) s
 if(mod(n,2)==0) then
  if(s(1:n/2) == s(n/2+1:n)) then
   write(*,*) 'Yes'
  else
   write(*,*) 'No'
  end if
 else
  write(*,*) 'No'
 end if
end program main