#include <bits/stdc++.h>
using namespace std;
const string c("aeiou");
string s;
int main() {
  cin >> s;
  int last = 0;
  for (int i = 2; i < s.size(); ++i) {
    if (c.find(s[i - 2]) >= c.size() && c.find(s[i - 1]) >= c.size() &&
        c.find(s[i]) >= c.size() &&
        (s[i - 2] != s[i - 1] || s[i - 1] != s[i])) {
      cout << s.substr(last, i - last) << " ";
      last = i;
      ++i;
    }
  }
  cout << s.substr(last) << endl;
  return 0;
}
