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

if s.count > k {
  let sArray = Array(s).map { String($0) }
  let result = sArray[0..<k] + ["..."]
  print(result.joined(separator: ""))
} else {
  print(s)
}
