Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Linq
Imports System.IO

Public Class Program


    Public Shared Sub Main(args As String())

        Dim K As Integer = Integer.Parse(Console.ReadLine)
        Dim S As String = Console.ReadLine()

        If S.Length <= K Then
            Console.WriteLine(S)
        Else
            Console.WriteLine("{0}...", S.Substring(0, K))
        End If

    End Sub




End Class