#include <bits/stdc++.h>
using namespace std;
bool is_con(long long int x) {
  if (x - 'a' == 'a' - 'a' || x - 'a' == 'e' - 'a' || x - 'a' == 'i' - 'a' ||
      x - 'a' == 'o' - 'a' || x - 'a' == 'u' - 'a')
    return false;
  return true;
}
bool same(long long int a, long long int b, long long int c) {
  if (a == b && b == c) return true;
  return false;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int t, i, m, z, u, v, ans, b, c, l, q, p, j, sum, d, n, a, x, y, k,
      w, h, r;
  t = 1;
  char ch;
  string s, aa, bb, dd, rr, tt, ss = "";
  while (t--) {
    cin >> s;
    n = s.length();
    x = 0;
    for (i = 0; i < n - 2; i++) {
      if (is_con(s[i]) && is_con(s[i + 1]) && is_con(s[i + 2]) &&
          !same(s[i], s[i + 1], s[i + 2])) {
        cout << s.substr(x, i + 1 - x + 1) << " ";
        x = i + 2;
        i = i + 1;
      }
    }
    cout << s.substr(x, n - x + 1);
  }
  return 0;
}
