defmodule Main do
  def main do
    k=IO.gets("") |> String.trim |> String.to_integer
    s=IO.gets("") |> String.trim
    if String.length(s)>k do
      IO.puts(String.slice(s, 0,k)<>"...")
    else
      IO.puts(s)
    end
  end
end
