import std.algorithm;
import std.range;
import std.stdio;
import std.string;

immutable string vowels = "aeiou";

void main ()
{
	string s;
	while ((s = readln.strip) != "")
	{
		string [] res;
main_loop:
		while (!s.empty)
		{
			foreach (i; 2..s.length)
			{
				if (!vowels.canFind (s[i - 2]) &&
				    !vowels.canFind (s[i - 1]) &&
				    !vowels.canFind (s[i - 0]) &&
				    (s[i - 2] != s[i - 1] ||
				    s[i - 1] != s[i - 0]))
				{
					res ~= s[0..i];
					s = s[i..$];
					continue main_loop;
				}
			}
			res ~= s;
			s = "";
		}
		res.join (" ").writeln;
	}
}
