Class Main
    Public Shared Sub Main()
    Dim K As integer = cint(console.readline())
    Dim S As string = console.readline()
    if S.Length > K then
      Console.WriteLine(S.Substring(0,K) & "...")
    else
      Console.WriteLine(S)
    end if
   End Sub
End Class