#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e9 + 5;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long t = 1;
  while (t--) {
    string s;
    cin >> s;
    long long c = 0;
    map<char, long long> m;
    for (long long i = 0; i < s.length(); i++) {
      if (s[i] == 'a' || s[i] == 'e' || s[i] == 'o' || s[i] == 'i' ||
          s[i] == 'u') {
        c = 0;
        cout << s[i];
        if (m.size() > 0) m.clear();
      } else {
        c++;
        m[s[i]]++;
        if (c < 3) {
          cout << s[i];
        } else if (c >= 3) {
          if (m[s[i]] == c) {
            cout << s[i];
          } else {
            cout << " " << s[i];
            c = 1;
            m.clear();
            m[s[i]]++;
          }
        }
      }
    }
  }
}
