#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  string s;
  char c[5] = {'a', 'e', 'i', 'o', 'u'};
  cin >> s;
  int ind = -1;
  for (int i = 0; i < s.size(); i++) {
    if (i > 1 && i - 2 > ind && (s[i] != s[i - 1] || s[i] != s[i - 2])) {
      for (int j = 0; j < 5; j++) {
        if (s[i] == c[j] || s[i - 1] == c[j] || s[i - 2] == c[j]) {
          break;
        } else if (j == 4) {
          cout << " ";
          ind = i - 1;
        }
      }
    }
    cout << s[i];
  }
}
