#include <bits/stdc++.h>
char s[3000 + 5];
bool q(char c) {
  char e[] = "aeiou";
  for (int i = 0; i < 5; ++i)
    if (e[i] == c) return true;
  return false;
}
bool ok(char *w) {
  if (w[0] == w[1] && w[1] == w[2]) return true;
  return q(w[0]) || q(w[1]) || q(w[2]);
}
int main() {
  scanf("%s", s);
  std::string out;
  for (int i = 0, last = 0; s[i]; ++i) {
    if (i - last < 2 || ok(s + i - 2))
      out.push_back(s[i]);
    else {
      out.push_back(' ');
      out.push_back(s[i]);
      last = i;
    }
  }
  printf("%s\n", out.c_str());
}
