#include <bits/stdc++.h>
using namespace std;
void DBG() { cerr << "]\n"; }
template <typename T, typename... Args>
void DBG(T first, Args... args) {
  cerr << first;
  if (sizeof...(args)) cerr << ", ";
  DBG(args...);
}
bool vowel(char s) {
  if (s == 'a' || s == 'e' || s == 'i' || s == 'o' || s == 'u')
    return true;
  else
    return false;
}
void solve() {
  string s;
  cin >> s;
  string ans;
  int n = s.length();
  int last = -1;
  for (int i = 0; i < n; i++) {
    if (vowel(s[i])) {
      continue;
    } else {
      if (i - 2 > last) {
        set<char> cons;
        if (!vowel(s[i]) && !vowel(s[i - 1]) && !vowel(s[i - 2])) {
          cons.insert(s[i]);
          cons.insert(s[i - 1]);
          cons.insert(s[i - 2]);
          if ((int)cons.size() >= 2) {
            for (int index = last + 1; index < i; index++)
              ans.push_back(s[index]);
            ans.push_back(' ');
            last = i - 1;
          }
        }
      }
    }
  }
  for (int i = last + 1; i < n; i++) ans.push_back(s[i]);
  cout << ans << endl;
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int t = 1;
  for (int tt = 1; tt <= t; tt++) {
    solve();
  }
}
