#include <bits/stdc++.h>
using namespace std;
using ll = long long;
string w;
const int N = 3010;
int dp[N];
int vowel[256];
int brk[N];
int go(int i) {
  if (i == w.size()) return 0;
  int& ans = dp[i];
  if (ans != -1) return ans;
  ans = 0x3f3f3f3f;
  int cons = 0;
  set<char> ap;
  for (int j = i; j < w.size(); j++) {
    if (!vowel[w[j]]) {
      cons++;
      ap.insert(w[j]);
      if (cons >= 3 && ap.size() > 1) break;
    } else {
      cons = 0;
      ap.clear();
    }
    int tmp = 1 + go(j + 1);
    if (tmp < ans) {
      ans = tmp;
      brk[i] = j + 1;
    }
  }
  return ans;
}
int main() {
  memset(dp, -1, sizeof dp);
  ios::sync_with_stdio(false);
  vowel['a'] = vowel['e'] = vowel['i'] = vowel['o'] = vowel['u'] = 1;
  cin >> w;
  go(0);
  int i = 0;
  while (i < w.size()) {
    cout << w.substr(i, brk[i] - i) << " ";
    i = brk[i];
  }
  cout << "\n";
  return 0;
}
