#include <bits/stdc++.h>
using namespace std;
int dp[3333];
int main() {
  string v;
  cin >> v;
  dp[v.size()] = 0;
  int len = v.size();
  for (int e = len - 1; e >= 0; e--) {
    int qtdC = 0;
    set<char> sh;
    dp[e] = dp[e + 1] + 1;
    for (int f = e; f < len; f++) {
      if (v[f] == 'a' || v[f] == 'e' || v[f] == 'i' || v[f] == 'o' ||
          v[f] == 'u') {
        qtdC = 0;
        sh.clear();
      } else {
        qtdC++;
        sh.insert(v[f]);
      }
      if (qtdC >= 3 && sh.size() >= 2) break;
      dp[e] = min(dp[e], dp[f + 1] + 1);
    }
  }
  int cur = 0;
  while (cur < len) {
    int qtdC = 0;
    set<char> sh;
    for (int f = cur; f < len; f++) {
      if (v[f] == 'a' || v[f] == 'e' || v[f] == 'i' || v[f] == 'o' ||
          v[f] == 'u') {
        qtdC = 0;
        sh.clear();
      } else {
        qtdC++;
        sh.insert(v[f]);
      }
      if (qtdC >= 3 && sh.size() == 2) break;
      if (dp[cur] == dp[f + 1] + 1) {
        for (int t = cur; t <= f; t++) cout << v[t];
        cout << " ";
        cur = f + 1;
        break;
      }
    }
  }
  cout << endl;
  return 0;
}
