#include <bits/stdc++.h>
bool is_vowel(char c) {
  return c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u';
}
bool is_consonant(char c) { return !is_vowel(c); }
int main() {
  std::string s;
  std::cin >> s;
  auto has_typo = [&](int i) {
    auto sub = s.substr(i, 3);
    return std::all_of(sub.begin(), sub.end(), is_consonant) &&
           !std::all_of(sub.begin(), sub.end(),
                        [&](char c) { return c == sub.front(); });
  };
  int size = s.size();
  std::string r;
  for (int i = 0; i < size; ++i) {
    if (has_typo(i)) {
      r += s.substr(i, 2);
      r += ' ';
      ++i;
    } else {
      r.push_back(s[i]);
    }
  }
  std::cout << r << '\n';
}
