#include <bits/stdc++.h>
using namespace std;
bool wow(char ch) {
  return ch == 'a' or ch == 'e' or ch == 'i' or ch == 'o' or ch == 'u';
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int n = s.length();
  for (int i = 0; i < n;) {
    int j = i;
    int len = 0;
    bool same = 0;
    char mark = 0;
    for (; j < n; j++) {
      if (wow(s[j])) {
        len = 0;
        same = 0;
        mark = 0;
        continue;
      }
      if (len == 0)
        mark = s[j], same = 1, len = 1;
      else
        len++, same = same and s[j] == mark;
      if (len > 2 and !same) {
        break;
      }
    }
    cout << s.substr(i, j - i) << ' ';
    i = j;
  }
  cout << endl;
  return 0;
};
