#include <bits/stdc++.h>
using namespace std;
bool vowel(char c) {
  return (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u');
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string a;
  cin >> a;
  int n = (int)a.length();
  vector<int> dp(n, 0);
  set<char> s;
  int x = 0;
  int idx = 0;
  bool used = false;
  while (idx < n - 2) {
    cout << a[idx];
    if (!vowel(a[idx]) && !vowel(a[idx + 1]) && !vowel(a[idx + 2]))
      if (a[idx] != a[idx + 1] || a[idx] != a[idx + 2] ||
          a[idx + 1] != a[idx + 2]) {
        cout << a[idx + 1] << ' ';
        if (idx + 1 == n - 2) used = true;
        idx += 2;
        continue;
      }
    idx++;
  }
  if (n <= 2) return cout << a, 0;
  if (n > 2) {
    if (!used) cout << a[n - 2];
    cout << a[n - 1];
  }
  return 0;
}
