#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
void yes() {
  cout << "Yes"
       << "\n";
}
void no() {
  cout << "No"
       << "\n";
}
struct Sync_stdio {
  Sync_stdio() {
    cin.tie(NULL);
    ios_base::sync_with_stdio(false);
  }
} _sync_stdio;
struct FAIL {
  FAIL() {
    cout << "CHANGE!!!"
         << "\n";
  }
};
vector<int> vowels(1000);
int main() {
  vowels['a'] = 1;
  vowels['e'] = 1;
  vowels['i'] = 1;
  vowels['o'] = 1;
  vowels['u'] = 1;
  string s;
  cin >> s;
  s += 'a';
  vector<int> type(s.size());
  set<int> letters;
  int block = 0;
  string current;
  for (int i = (0); i < (s.size()); ++i) {
    if (vowels[s[i]]) {
      type[i] = 0;
      block = 0;
      current += s[i];
      letters.erase(letters.begin(), letters.end());
    } else {
      ++block;
      letters.insert(s[i]);
      if (letters.size() > 1 && block >= 3) {
        cout << current << " ";
        current = "";
        block = 1;
        letters.erase(letters.begin(), letters.end());
        letters.insert(s[i]);
      }
      type[i] = 1;
      current += s[i];
    }
  }
  current.pop_back();
  cout << current;
  return 0;
}
