import Foundation

//let str = readLine(stripNewline: true)

let str = "CODEFESTIVAL"
var str_arr = Array(str.characters)

str_arr.insert(" ", atIndex: 4)
let new_arr = String(str_arr)

print("\(new_arr)")