#include <bits/stdc++.h>
using namespace std;
int n, i, j, k, x, y, z, m, q, h, l, timer;
int a[100500];
int cons[1555];
string s, ans;
int main() {
  string ttt = "aoeui";
  for (i = 0; i < 5; i++) cons[ttt[i]] = 1;
  cin >> s;
  char lst;
  bool same = true;
  int cnt = 0;
  for (i = 0; i < s.size(); i++) {
    if (cons[s[i]]) {
      ans.push_back(s[i]);
      same = true;
      cnt = 0;
      continue;
    } else {
      if (cnt == 0)
        cnt++, lst = s[i];
      else {
        if (s[i] != lst) same = false;
        cnt++;
        if (same == false && cnt > 2) {
          same = true;
          cnt = 1;
          lst = s[i];
          ans.push_back(' ');
        }
      }
      ans.push_back(s[i]);
    }
  }
  cout << ans << endl;
  return 0;
}
