#include <bits/stdc++.h>
using namespace std;
bool isVowel(char c) {
  return c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u';
}
bool isTypo(string s) {
  for (int i = 0; i < 2; i++) {
    if (s[i] != s[i + 1]) {
      return true;
    }
  }
  return false;
}
int main() {
  ios_base::sync_with_stdio(false);
  string s;
  cin >> s;
  string tmp;
  for (int i = 0; i < s.size(); i++) {
    tmp += s[i];
    if (isVowel(s[i])) {
      cout << tmp;
      tmp = "";
    } else {
      if (tmp.size() >= 3 && isTypo(tmp.substr(tmp.size() - 3))) {
        tmp.pop_back();
        cout << tmp << " ";
        tmp = s[i];
      }
    }
  }
  cout << tmp;
  return 0;
}
