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