#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  const int n = s.size();
  unordered_map<char, int> vowel;
  vowel['a'] = vowel['e'] = vowel['i'] = vowel['o'] = vowel['u'] = 1;
  unordered_set<char> already;
  int cnt = 0;
  for (int i = 0; i < n; ++i) {
    if (!vowel.count(s[i])) {
      already.insert(s[i]);
      cnt++;
    } else {
      already.clear();
      cnt = 0;
    }
    if (already.size() > 2 or (cnt > 2 and already.size() > 1)) {
      cout << " ";
      already.clear();
      cnt = 0;
      already.insert(s[i]);
      cnt++;
    }
    cout << s[i];
  }
  return 0;
}
