#include <bits/stdc++.h>
using namespace std;
int main() {
  string w;
  int n;
  cin >> w;
  n = w.length();
  string mw = "";
  int c = 0, eq = 0;
  for (int x = 0; x < n; x++) {
    if (w[x] == 'a' || w[x] == 'e' || w[x] == 'i' || w[x] == 'o' ||
        w[x] == 'u') {
      c = 0;
      eq = 0;
    } else {
      c++;
      if (x > 0 && w[x] == w[x - 1])
        eq++;
      else
        eq = 1;
    }
    if (c > 2 && c != eq) {
      cout << mw << " ";
      mw = "";
      c = 1;
      eq = 1;
    }
    mw += w[x];
  }
  if (mw != "") cout << mw;
  cout << endl;
  return 0;
}
