#include <bits/stdc++.h>
using namespace std;
bool isConsonant(char c) {
  return !(c == 'a' | c == 'o' | c == 'i' | c == 'e' | c == 'u');
}
int main() {
  string s;
  cin >> s;
  int consonantsInARow = isConsonant(s[0]), areDifferent = 0;
  cout << s[0];
  for (int i = 1; i < s.size(); i++) {
    if (isConsonant(s[i])) {
      consonantsInARow++;
      if (consonantsInARow > 1 && areDifferent == 0) {
        areDifferent = !(s[i] == s[i - 1]);
      }
      if (consonantsInARow >= 3 && areDifferent) {
        cout << " ";
        consonantsInARow = 1;
        areDifferent = 0;
      }
    } else {
      consonantsInARow = 0;
      areDifferent = 0;
    }
    cout << s[i];
  }
  return 0;
}
