#include <bits/stdc++.h>
using namespace std;
char c[] = "aeiou";
char s[3005];
inline bool check(char ch) {
  for (int i = 0; i <= 4; i++) {
    if (ch == c[i]) {
      return 0;
    }
  }
  return 1;
}
int main() {
  scanf("%s", s);
  int n = strlen(s), lst = -1;
  for (int i = 0; i <= n - 1; i++) {
    putchar(s[i]);
    if (i != n - 1 && lst <= i - 2 && check(s[i]) && check(s[i - 1]) &&
        check(s[i + 1]) &&
        (s[i] != s[i - 1] || s[i] != s[i + 1] || s[i - 1] != s[i + 1])) {
      putchar(' ');
      lst = i;
    }
  }
  cout << " ";
  return 0;
}
