#include <bits/stdc++.h>
using namespace std;
string imp = "Impossible\n";
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
clock_t startTime;
double getCurrentTime() {
  return (double)(clock() - startTime) / CLOCKS_PER_SEC;
}
const int N = 1e5 + 1e3;
long long MOD = 1e9 + 7;
vector<int> aa[N];
int a[N], b[N], c[N];
int n, m, k, i, j;
bool d[N];
string s;
bool iscons(char c) {
  if (c != 'a' && c != 'e' && c != 'i' && c != 'o' && c != 'u') return true;
  return false;
}
int main() {
  startTime = clock();
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int tests = 1;
  while (tests--) {
    cin >> s;
    int ns = s.size();
    if (ns < 3) {
      cout << s;
      return 0;
    }
    int cons = 0;
    if (iscons(s[1])) {
      if (iscons(s[0]))
        cons += 2;
      else
        cons++;
    }
    cout << s[0] << s[1];
    for (int i = 2; i < ns; i++) {
      if (iscons(s[i])) {
        cons++;
        if (cons == 3) {
          if (s[i] == s[i - 1] && s[i - 1] == s[i - 2]) cons = 2;
        }
      } else
        cons = 0;
      if (cons == 3) {
        cout << " ";
        cons = 1;
      }
      cout << s[i];
    }
  }
  return 0;
}
