#include <bits/stdc++.h>
using namespace std;
bool ok(char c, char c2, char c3) { return c == c2 && c2 == c3; }
void Suhaib_Sawalha() {
  string s;
  cin >> s;
  set<char> st;
  for (char f : "aeiou") st.insert(f);
  long long counter = 0;
  char one = '$', two = '$';
  for (char f : s) {
    if (st.count(f))
      counter = 0, one = two = '$';
    else {
      if (!counter)
        one = f;
      else if (counter == 1)
        two = f;
      if (counter >= 2 && !ok(one, two, f)) {
        counter = 1;
        one = f;
        two = '$';
        cout << ' ';
      } else
        counter++;
      if (counter >= 3) one = two, two = f;
    }
    cout << f;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int _;
  Suhaib_Sawalha();
  return 0;
}
