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