program main
      implicit none
      character(100) :: s
      integer :: k

      read *, k
      read *, s

      if( len_trim(s) <= k ) then
        print *, s
      else
        print *, s(1:k)//'...'
      end if


end program main
