#include <bits/stdc++.h>
using namespace std;
string s;
bool samoglasnik(char ch) {
  return ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u';
}
int main(void) {
  cin >> s;
  for (int i = 0; i < s.size(); ++i) {
    if (i + 2 < s.size() && !samoglasnik(s[i]) && !samoglasnik(s[i + 1]) &&
        !samoglasnik(s[i + 2]) && (s[i] != s[i + 1] || s[i] != s[i + 2])) {
      cout << s[i] << s[i + 1] << " ";
      i++;
    } else {
      cout << s[i];
    }
  }
  return 0;
}
