#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  long long int i, n = s.length(), j, l = 0, h = 0, f = 0;
  vector<long long int> v;
  for (i = 0; i < n; i++) {
    if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' ||
        s[i] == 'u') {
      f = 0;
      continue;
    } else {
      f++;
      if (f == 3) {
        if (s[i] == s[i - 1] && s[i - 1] == s[i - 2])
          f--;
        else {
          v.push_back(i - 1);
          f = 1;
        }
      }
    }
  }
  if (v.size() >= 1) {
    if (v[v.size() - 1] != n - 1) v.push_back(n - 1);
  } else
    v.push_back(n - 1);
  for (i = 0; i <= v[0]; i++) cout << s[i];
  cout << " ";
  l = v[0] + 1;
  for (i = 1; i < v.size(); i++) {
    l = v[i - 1] + 1;
    h = v[i];
    for (j = l; j <= h; j++) cout << s[j];
    cout << " ";
  }
  return 0;
}
