#include <bits/stdc++.h>
using namespace std;
long long power(long long x, long long y) {
  if (y == 0) return 1;
  if (y == 1) return x;
  if (y % 2)
    return x * power(x, y / 2) * power(x, y / 2);
  else
    return power(x, y / 2) * power(x, y / 2);
}
void solve() {
  string s;
  cin >> s;
  vector<long long> v;
  long long n = s.size();
  for (long long i = 1; i + 1 < n; i++) {
    long long dis = 0, c = 0;
    for (long long j = i - 1; j < i + 2; j++) {
      if (s[j] == 'a' || s[j] == 'e' || s[j] == 'i' || s[j] == 'o' ||
          s[j] == 'u')
        continue;
      else {
        c++;
        if (j != i - 1 && s[j] != s[j - 1])
          dis++;
        else if (j == i - 1)
          dis++;
      }
    }
    if (c == 3 && dis >= 2) {
      v.push_back(i + 1);
      i++;
    }
  }
  if (v.size() == 0) {
    cout << s << "\n";
    return;
  }
  long long k = 0;
  for (long long i = 0; i < n; i++) {
    if (v[k] == i) {
      cout << " " << s[i];
      k++;
    } else
      cout << s[i];
  }
  cout << "\n";
  return;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
