#include <bits/stdc++.h>
using namespace std;
template <typename T>
void chkmin(T& a, T b) {
  if (a > b) a = b;
}
bool vow(char c) {
  return c == 'a' || c == 'i' || c == 'e' || c == 'o' || c == 'u';
}
int main() {
  string s;
  cin >> s;
  int n = (int)(s).size();
  vector<pair<int, int> > dp(n + 1);
  dp[0] = {0, 0};
  for (int i = 0; i < n; ++i) {
    dp[i + 1] = {n, i};
    int j = i;
    set<char> S;
    int len = 0;
    while (j >= 0) {
      if (vow(s[j])) {
        S.clear();
        len = 0;
      } else {
        S.insert(s[j]);
        ++len;
      }
      if ((int)(S).size() >= 2 && len >= 3) {
        break;
      }
      chkmin(dp[i + 1], {dp[j].first + 1, j});
      --j;
    }
  }
  string out;
  int pos = n;
  while (pos > 0) {
    int nxt = dp[pos].second;
    string tmp = s.substr(nxt, pos - nxt);
    out = " " + tmp + out;
    pos = nxt;
  }
  out.erase(out.begin());
  cout << out;
}
