#include <bits/stdc++.h>
using namespace std;
const int Maxn = 3e5 + 10;
char s[Maxn];
bool boo[50];
int main() {
  for (; scanf("%s", s) != EOF;) {
    int len = strlen(s);
    for (int j = 0; j < 26; j++) boo[j] = false;
    int sum = 0, x = 0;
    for (int i = 0; i < len; i++) {
      if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' ||
          s[i] == 'u') {
        for (int j = 0; j < 26; j++) boo[j] = false;
        sum = 0;
        x = 0;
        printf("%c", s[i]);
        continue;
      }
      if (!boo[s[i] - 'a']) sum++;
      boo[s[i] - 'a'] = true;
      x++;
      if (!(x >= 3 && sum >= 2))
        printf("%c", s[i]);
      else {
        printf(" %c", s[i]);
        for (int j = 0; j < 26; j++) boo[j] = false;
        sum = 0;
        if (!boo[s[i] - 'a']) sum++;
        boo[s[i] - 'a'] = true;
        x = 1;
      }
    }
    printf("\n");
  }
  return 0;
}
