#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string a;
  cin >> a;
  long long n = a.length();
  long long consonant = 0;
  string ans = "";
  for (long long i = 0; i < n; i++) {
    if (a[i] == 'a' || a[i] == 'e' || a[i] == 'i' || a[i] == 'o' ||
        a[i] == 'u') {
      ans += a[i];
      consonant = 0;
    } else {
      consonant++;
      if (consonant <= 2) {
        ans += a[i];
      } else {
        if (a[i] == a[i - 1] && a[i] == a[i - 2]) {
          ans += a[i];
        } else {
          ans += ' ';
          ans += a[i];
          consonant = 1;
        }
      }
    }
  }
  cout << ans;
  return 0;
}
