#include <bits/stdc++.h>
using namespace std;
char s[5000];
int main() {
  cin >> (s + 1);
  long long len = strlen(s + 1);
  long long res = 0, cnt = 0;
  char ch;
  for (int i = 1; i <= len; i++) {
    if (s[i] != 'a' && s[i] != 'e' && s[i] != 'i' && s[i] != 'o' &&
        s[i] != 'u') {
      if (res == 0)
        res = 1, ch = s[i], cnt = 1;
      else {
        res++;
        if (s[i] != ch) cnt++;
        if (res >= 3 && cnt > 1) {
          cout << " ";
          ch = s[i], res = 1, cnt = 1;
        }
      }
    } else
      res = 0, ch = 0;
    cout << s[i];
  }
  return 0;
}
