#include <bits/stdc++.h>
using namespace std;
char s[3333];
int n;
inline bool isvowel(char ch) {
  return (ch == 'a' || ch == 'e' || ch == 'o' || ch == 'u' || ch == 'i');
}
int main() {
  scanf("%s", s);
  n = (int)strlen(s);
  int tail = 0;
  for (int i = 0; i < n; ++i) {
    if (isvowel(s[i])) {
      printf("%c", s[i]);
      tail = 0;
    } else {
      if (tail >= 2 && !isvowel(s[i - 2]) && !isvowel(s[i - 1]) &&
          (s[i - 2] != s[i] || s[i - 1] != s[i])) {
        printf(" ");
        printf("%c", s[i]);
        tail = 1;
      } else {
        printf("%c", s[i]);
        tail++;
      }
    }
  }
  printf("\n");
}
