#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int len = s.size();
  int cnt = 0;
  string ans = "";
  for (int i = 0; i < len; i++) {
    if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' || s[i] == 'u')
      cnt = 0;
    else {
      if (i >= 2) {
        if (s[i] == s[i - 1] && s[i] == s[i - 2] && cnt == 2)
          cnt = cnt;
        else
          cnt++;
      } else
        cnt++;
    }
    if (cnt == 3) {
      ans = ans + " " + s[i];
      cnt = 1;
    } else
      ans = ans + s[i];
  }
  cout << ans << endl;
  return 0;
}
