import Foundation

let k = Int(readLine()!)!
let s = readLine()!

if s.count <= k {
    print(s)
    exit(0)
}

let subs = String(s[s.startIndex..<s.index(s.startIndex, offsetBy: k)]) + "..."
print(subs)

