#include <bits/stdc++.h>
using namespace std;
template <typename T>
using pq_gt = priority_queue<T, vector<T>, greater<T>>;
template <typename T>
using pq_lt = priority_queue<T, vector<T>, less<T>>;
bool consonant(char ch) {
  return ch != 'a' && ch != 'e' && ch != 'i' && ch != 'o' && ch != 'u';
}
bool visited[3030];
int main() {
  ios::sync_with_stdio(false);
  string str;
  cin >> str;
  int cnt = 0;
  for (int i = 0; i < str.size(); ++i) {
    if (consonant(str[i])) {
      cnt++;
      if (cnt == 3) {
        if (str[i - 2] == str[i - 1] && str[i] == str[i - 1]) {
          cnt--;
        } else {
          visited[i - 1] = true;
          cnt = 1;
        }
      }
    } else {
      cnt = 0;
    }
  }
  for (int i = 0; i < str.size(); ++i) {
    cout << str[i];
    if (visited[i]) {
      cout << ' ';
    }
  }
  cout << endl;
}
