      PROGRAM echo
      IMPLICiT NONE
      INTEGER :: n
      character(300) :: s
      character(3)   :: ans = 'Yes'

      
      read*,n
      read*,s
      
      
      if( mod(n,2)==1 ) ans = 'No '
      
      if( .not.( lge(s(1:n/2),s(n/2+1:n)).and.lle(s(1:n/2),s(n/2+1:n)) )) ans = 'No'
      
      
      END PROGRAM