#include <bits/stdc++.h>
using namespace std;
int arr[26];
int main() {
  string s, temp = "";
  arr[0] = arr['e' - 'a'] = arr['i' - 'a'] = arr['o' - 'a'] = arr['u' - 'a'] =
      1;
  cin >> s;
  int count = 0;
  for (int i = 0; i < s.size(); i++) {
    if (arr[s[i] - 'a'] == 1) {
      count = 0;
      temp += s[i];
    } else {
      if (count == 2) {
        if (s[i - 1] == s[i - 2] && s[i - 1] == s[i])
          temp += s[i];
        else {
          temp += " ";
          temp += s[i];
          count = 1;
        }
      } else {
        temp += s[i];
        count++;
      }
    }
  }
  cout << temp;
}
