#include <bits/stdc++.h>
using namespace std;
double pi = 3.141592653589793238462;
string numkey = "0123456789";
string uni = "abcdefghijklmnopqrstuvwxyz";
bool check(char ch) {
  string s = "aeiou";
  for (long long int i = 0; i < s.size(); i++) {
    if (s[i] == ch) return true;
  }
  return false;
}
signed main() {
  string s;
  cin >> s;
  long long int n = s.length(), ctr = 0;
  set<char> st;
  for (long long int i = 0; i < n; i++) {
    if (check(s[i]) == false)
      ctr++, st.insert(s[i]);
    else
      ctr = 0, st.clear();
    if (ctr > 2 && st.size() > 1) {
      st.clear();
      cout << " ";
      st.insert(s[i]);
      ctr = 1;
    }
    cout << s[i];
  }
  return 0;
}
