program main
  implicit none
  integer i, K, L
  character(103) S,Sa
  read(*, *) K
  read(*, *) S
  !read(*, *) (L(i), i = 1,N)
  L = len(trim(S))
  if (L > K) then
    do i = K+1,103
      S(i:i) = '.'
    end do
    write(*, *) S(1:K+3)
  else
    write(*, *) S
  end if
end program main
