#include <bits/stdc++.h>
using namespace std;
template <class T>
void print(vector<T> s) {
  for (long long i = 0; i < (int)s.size(); i++) cout << s[i] << " ";
  cout << endl;
}
template <class T>
void print(vector<pair<T, T> > s) {
  for (long long i = 0; i < s.size(); i++)
    cout << s[i].first << " " << s[i].second << endl;
  cout << endl;
}
template <class T>
void print(vector<vector<T> > s) {
  for (long long i = 0; i < s.size(); i++) print(s[i]);
}
bool check(char c) {
  return c == 'a' || c == 'u' || c == 'e' || c == 'i' || c == 'o';
}
int main() {
  string s;
  cin >> s;
  int cur = 0;
  for (int i = 0; i < s.size(); i++) {
    if (cur == 0 || cur == 1) {
      cout << s[i];
      cur++;
      continue;
    }
    if (!check(s[i]) && !check(s[i - 1]) && !check(s[i - 2]) &&
        (s[i] != s[i - 1] || s[i] != s[i - 2] || s[i - 1] != s[i - 2])) {
      cout << " " << s[i];
      cur = 1;
      continue;
    }
    cur++;
    cout << s[i];
  }
  return 0;
}
