#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 3000;
const char VWLS[] = "aeiou";
char s[MAX_N + 4];
bool vmap[128], used[26];
int main() {
  for (int i = 0; VWLS[i]; i++) vmap[VWLS[i]] = true;
  scanf("%s", s);
  for (int i = 0, cn = 0, l = 0; s[i]; i++) {
    if (vmap[s[i]]) {
      if (cn > 0) {
        memset(used, false, sizeof(used));
        cn = 0;
      }
      l = 0;
    } else {
      int si = s[i] - 'a';
      if (!used[si]) {
        used[si] = true;
        cn++;
      }
      if (++l >= 3 && cn > 1) {
        putchar(' ');
        memset(used, false, sizeof(used));
        used[si] = true;
        cn = l = 1;
      }
    }
    putchar(s[i]);
  }
  putchar('\n');
  return 0;
}
