#include <bits/stdc++.h>
const int MAXN = 3000 + 10;
char s[MAXN];
bool isCon(const char c) {
  return c != 'a' && c != 'e' && c != 'i' && c != 'o' && c != 'u';
}
bool judgeTypo(int x) {
  return isCon(s[x - 1]) && isCon(s[x]) && isCon(s[x + 1]) &&
         ((s[x] != s[x + 1]) || (s[x] != s[x - 1]));
}
int cx[MAXN];
int main() {
  scanf("%s", s);
  int n = strlen(s), cnt = 0;
  cx[0] = -1;
  for (int i = 1; i < n - 1; i++) {
    if (judgeTypo(i)) {
      cx[cnt++] = i;
      i++;
    }
  }
  int ct = 0;
  for (int i = 0; i < n; i++) {
    printf("%c", s[i]);
    if (cx[ct] == i) {
      ct++;
      printf(" ");
    }
  }
}
