#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline bool Max(T &x, const T &y) {
  return x < y ? x = y, 1 : 0;
}
template <typename T>
inline bool Min(T &x, const T &y) {
  return x > y ? x = y, 1 : 0;
}
template <typename T>
using V = vector<T>;
template <typename T>
using VV = V<V<T> >;
static const long long MOD = 1e9 + 7;
static const double PI = 3.141592653589793;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int counter = 0;
  map<char, char> table;
  table['a'] = 1;
  table['i'] = 1;
  table['u'] = 1;
  table['e'] = 1;
  table['o'] = 1;
  int i, len = s.size();
  for ((i) = 0; (i) < (len); (i)++) {
    if (table.find(s[i]) == table.end()) {
      counter++;
      if (3 <= counter) {
        if (s[i] == s[i - 1] && s[i - 1] == s[i - 2]) {
          counter--;
        } else {
          cout << ' ';
          counter = 1;
        }
      }
    } else {
      counter = 0;
    }
    cout << s[i];
  }
  cout << '\n';
  return 0;
}
