#include <bits/stdc++.h>
using namespace std;
bool comp(const int a, const int b) { return a < b; }
bool RelativelyPrime(int a, int b) {
  return (a < b)    ? RelativelyPrime(b, a)
         : !(a % b) ? (b == 1)
                    : RelativelyPrime(b, a % b);
}
int c[26];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string a;
  cin >> a;
  int flag = 0, l = 0;
  for (int i = 0; i < a.length(); i++) {
    if (a[i] == 'a' || a[i] == 'e' || a[i] == 'i' || a[i] == 'o' ||
        a[i] == 'u') {
      flag = 0;
      l = 0;
    } else
      l++;
    if (l >= 2 && a[i] != a[i - 1]) flag = 1;
    if (l >= 3 && flag) {
      cout << " ";
      l = 1;
      flag = 0;
    }
    cout << a[i];
  }
  return 0;
}
