#include <bits/stdc++.h>
using namespace std;
bool is_vowel(const char c) {
  for (const char vowel : {'a', 'e', 'i', 'o', 'u'})
    if (c == vowel) return true;
  return false;
}
bool is_block_ok(const array<char, 3> cs) {
  for (const char c : cs)
    if (is_vowel(c)) return true;
  return cs[0] == cs[1] && cs[1] == cs[2];
}
int main() {
  string s;
  cin >> s;
  const int n = int(s.length());
  int start = 0;
  for (int i = 0; i < n; i++) {
    if (i >= start + 2 && !is_block_ok({s[i - 2], s[i - 1], s[i]})) {
      cout << " ";
      start = i;
    }
    cout << s[i];
  }
  cout << endl;
}
