#include <bits/stdc++.h>
using std::abs;
using std::array;
using std::cerr;
using std::cin;
using std::cout;
using std::generate;
using std::make_pair;
using std::map;
using std::max;
using std::max_element;
using std::min;
using std::min_element;
using std::pair;
using std::reverse;
using std::set;
using std::sort;
using std::string;
using std::unique;
using std::vector;
template <typename T>
T input() {
  T res;
  cin >> res;
  {};
  return res;
}
template <typename IT>
void input_seq(IT b, IT e) {
  std::generate(b, e,
                input<typename std::remove_reference<decltype(*b)>::type>);
}
bool bad(char a) {
  return a != 'a' and a != 'e' and a != 'i' and a != 'o' and a != 'u';
}
bool bad(string a) {
  return a.size() >= 3 and bad(a[a.size() - 1]) and bad(a[a.size() - 2]) and
         bad(a[a.size() - 3]) and
         not(a[a.size() - 1] == a[a.size() - 2] and
             a[a.size() - 2] == a[a.size() - 3]);
}
int main() {
  std::iostream::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  string s = input<string>();
  string b = "";
  for (char ch : s) {
    b += ch;
    if (bad(b)) {
      b.pop_back();
      cout << b << " ";
      b.clear();
      b += ch;
    }
  }
  if (b != "") cout << b;
  cout << "\n";
  return 0;
}
