#include <bits/stdc++.h>
char a[3010];
int flag[3010];
bool yuan(char x) {
  if (x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u')
    return 1;
  else
    return 0;
}
int main() {
  scanf("%s", a);
  int str = strlen(a);
  int cnt = 0;
  memset(flag, 0, sizeof(flag));
  for (int i = 0; i < str; i++) {
    if (yuan(a[i])) {
      cnt = 0;
      continue;
    }
    if (!yuan(a[i])) {
      cnt++;
    }
    if (cnt == 3) {
      if (a[i] != a[i - 1] || a[i] != a[i - 2]) {
        cnt = 1;
        flag[i - 1] = 1;
        continue;
      }
    }
    if (cnt >= 4) {
      if (a[i] != a[i - 1]) {
        flag[i - 1] = 1;
        cnt = 1;
      }
    }
  }
  for (int i = 0; i < str; i++) {
    if (flag[i] == 0) printf("%c", a[i]);
    if (flag[i] == 1) printf("%c ", a[i]);
  }
  return 0;
}
