! 2019.11.16
!
      program answer
      implicit none
      integer :: N
      character(len=100) :: S
      integer :: just
      intrinsic mod
      read(*,*) N
      read(*,*) S
!
      if( mod(N,2) == 1) then
        write(*,*) 'No'
      else
        if( S(1:N/2) == S((N/2+1):N) ) then
          write(*,*) 'Yes'
        else
          write(*,*) 'No'
        end if
      end if
!
      end program answer