#include <bits/stdc++.h>
using namespace std;
bool cons(char c) {
  if (c == 'a' || c == 'o' || c == 'u' || c == 'e' || c == 'i') return false;
  return true;
}
int main() {
  ios::sync_with_stdio(0);
  cout.tie(0);
  cin.tie(0);
  string s;
  int co = 0;
  cin >> s;
  for (int(i) = (0); (i) < (s.length()); (i)++) {
    if (cons(s[i])) {
      if (co >= 2)
        if (s[i] != s[i - 1] || s[i] != s[i - 2]) {
          co = 0;
          cout << " ";
        }
      cout << s[i];
      co++;
    } else {
      cout << s[i];
      co = 0;
    }
  }
}
