#include <bits/stdc++.h>
using namespace std;
int main() {
  bool gl[256];
  for (int i = 0; i < 256; i++) {
    if (i == 'a' || i == 'e' || i == 'i' || i == 'o' || i == 'u') {
      gl[i] = true;
    } else {
      gl[i] = false;
    }
  }
  string inp, ans;
  char last = 'a';
  char plast = 'a';
  getline(cin, inp);
  for (int i = 0; i < inp.size(); i++) {
    if (!gl[plast] && !gl[last] && !gl[inp[i]] &&
        (last != plast || last != inp[i])) {
      cout << " ";
      plast = 'a';
    } else {
      plast = last;
    }
    last = inp[i];
    cout << inp[i];
  }
  cout << "\n";
  return 0;
}
