#include <bits/stdc++.h>
using namespace std;
bool is_consonant(char c) {
  if (c == 'a' || c == 'e' || c == 'u' || c == 'i' || c == 'o') return false;
  return true;
}
int main() {
  string s;
  cin >> s;
  int i = 1;
  while (s.size() && i < s.size()) {
    if (is_consonant(s[i - 1]) == true && is_consonant(s[i]) == true &&
        is_consonant(s[i + 1]) == true &&
        (s[i] != s[i - 1] || s[i] != s[i + 1] || s[i - 1] != s[i + 1])) {
      char ch[i + 1];
      s.copy(ch, i + 1, 0);
      for (int k = 0; k < i + 1; k++) cout << ch[k];
      s.erase(0, i + 1);
      i = 1;
      cout << ' ';
    } else
      i++;
  }
  cout << s;
}
