#include <bits/stdc++.h>
using namespace std;
long long M = 100000000000;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t = 1;
  while (t--) {
    string s;
    cin >> s;
    long long ans = 0;
    vector<long long> v;
    v.push_back(0);
    set<char> se;
    long long i = 0;
    while (i < s.length()) {
      if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' ||
          s[i] == 'u') {
        ans = 0;
        se.clear();
      } else {
        se.insert((char)s[i]);
        ans++;
        if (ans == 3 && se.size() > 1) {
          v.push_back(i);
          se.clear();
          ans = 1;
          se.insert(s[i]);
        } else if (ans == 3 && se.size() == 1) {
          ans = 2;
        }
      }
      i++;
    }
    v.push_back(s.length());
    for (long long i = 0; i < v.size() - 1; i++) {
      cout << s.substr(v[i], v[i + 1] - v[i]) << " ";
    }
  }
}
