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