unittest
{
	assert( [ "CODEFESTIVAL" ].parse.expand.solve == "CODE FESTIVAL" );
	assert( [ "POSTGRADUATE" ].parse.expand.solve == "POST GRADUATE" );
	assert( [ "ABCDEFGHIJKL" ].parse.expand.solve == "ABCD EFGHIJKL" );
}



import std.conv;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto s = input.front.to!( dchar[] );
	return tuple( s );
}

auto solve( dchar[] s )
{
	return s[ 0 .. 4 ] ~ ' ' ~ s[ 4 .. $ ];
}
