#include <bits/stdc++.h>
using namespace std;
bool f(char x) {
  return x != 'a' && x != 'o' && x != 'e' && x != 'u' && x != 'i';
}
int main() {
  string str;
  cin >> str;
  int k = 0;
  for (int i = 0; i < str.size(); i++) {
    if (f(str[i]) == false) {
      k = 0;
    } else if (k >= 2 && (str[i] != str[i - 1] || str[i] != str[i - 2])) {
      cout << " ";
      k = 1;
    } else {
      k++;
    }
    cout << str[i];
  }
  return 0;
}
