#include <bits/stdc++.h>
using namespace std;
long long n, a[((long long)(1e5 + 100))];
long long p = 0;
bool ck(char x) {
  if (x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u')
    return 0;
  else
    return 1;
}
long long f[((long long)(1e5 + 100))];
int main() {
  string s;
  cin >> s;
  long long n = s.size();
  for (int i = 2; i < n; i++) {
    if (f[i - 1] == 0 && f[i - 2] == 0 && ck(s[i]) && ck(s[i - 1]) &&
        ck(s[i - 2]) && (s[i] != s[i - 1] || s[i - 1] != s[i - 2])) {
      f[i - 1] = 1;
    }
  }
  for (int i = 0; i < n; i++) {
    cout << s[i];
    if (f[i]) cout << " ";
  }
  cout << endl;
  return 0;
}
