// ... (Triple Dots)

func main() {
    let k = Int(readLine()!)!
    let s = readLine()!
    if s.count > k {
        print(String(s.map{$0}[0..<k]) + "...")
    } else {
        print(s)
    }
}

main()