#include <bits/stdc++.h>
using namespace std;
enum { MOD0 = 1000000000, MOD7 = 1000000007, MOD9 = 1000000009 };
template <typename T>
ostream &operator<<(ostream &cout, vector<T> &a) {
  for (size_t i = 0; i < a.size(); ++i) cout << a[i] << " ";
  return cout;
}
template <typename T>
ostream &operator<<(ostream &cout, vector<vector<T> > &a) {
  for (size_t i = 0; i < a.size(); ++i) cout << a[i] << endl;
  return cout;
}
int sonor(int a) {
  return a != 'a' && a != 'e' && a != 'i' && a != 'o' && a != 'u';
}
bool x[3000];
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  int last[3] = {0};
  int c = 0;
  for (int i = 0; i < s.size(); ++i) {
    if (sonor(s[i])) {
      last[c++] = s[i];
      if (c == 3) {
        if (last[0] == last[1] && last[1] == last[2]) {
          c = 2;
        } else {
          x[i] = 1;
          c = 1;
          last[0] = last[2];
        }
      }
    } else {
      c = 0;
    }
  }
  for (int i = 0; i < s.size(); ++i) {
    if (x[i]) cout << ' ';
    cout << s[i];
  }
  return 0;
}
