#include <bits/stdc++.h>
using namespace std;
int a, e, i, o, u;
bool checki(char s) {
  int r;
  r = s - 'a';
  if (r == a || r == e || r == i || r == o || r == u) {
    return true;
  } else {
    return false;
  }
}
int main() {
  string s;
  cin >> s;
  if (s.size() < 3) {
    cout << s << endl;
    return 0;
  }
  char w;
  a = 'a' - 'a';
  e = 'e' - 'a';
  i = 'i' - 'a';
  o = 'o' - 'a';
  u = 'u' - 'a';
  vector<int> pos;
  for (int i = 0; i <= s.size() - 3; i++) {
    bool checky[3];
    checky[0] = checki(s[i]);
    checky[1] = checki(s[i + 1]);
    checky[2] = checki(s[i + 2]);
    if (!(checky[0] || checky[1] || checky[2])) {
      if (s[i + 2] == s[i] && s[i + 1] == s[i]) {
      } else {
        pos.push_back(i + 1);
        i++;
      }
    }
  }
  int j = 0;
  pos.push_back(s.size() + 1);
  for (int i = 0; i < pos.size(); i++) {
    for (; j <= s.size() - 1 && j <= pos[i]; j++) {
      cout << s[j];
    }
    cout << " ";
  }
  cout << endl;
  return 0;
}
