function Main(input) {
	var s = String(input);
	var s2 = s.slice(0, 4) + " " + s.slice(4);
	// s.splice(1, 4, " ");
	console.log(s2);
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));