#include <bits/stdc++.h>
using namespace std;
char s[3010], ans[5050];
int main() {
  scanf("%s", s);
  int cnt = 0, same = 1, k = 0, len = (int)strlen(s);
  for (int i = 0; i < len; i++) {
    printf("%c", s[i]);
    if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' || s[i] == 'u')
      cnt = 0, same = 1;
    else {
      cnt++;
      int pos = i + 1;
      if (pos == len || s[pos] == 'a' || s[pos] == 'e' || s[pos] == 'i' ||
          s[pos] == 'o' || s[pos] == 'u')
        continue;
      if (s[pos] != s[pos - 1]) same = 0;
      if (same) continue;
      if (cnt >= 2) {
        printf(" ");
        cnt = 0;
        same = 1;
      }
    }
  }
  return 0;
}
