#include <bits/stdc++.h>
using namespace std;
char s[5000];
int main() {
  scanf("%s", s + 1);
  int n = strlen(s + 1);
  int pos = 1;
  bool flag = 0;
  for (int i = 1; i <= n; ++i) {
    bool ok = 0;
    for (int j = 0; j < 3; ++j) {
      if (i - j < pos) {
        ok = 1;
        break;
      }
      char c = s[i - j];
      if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') ok = 1;
    }
    if (!ok) {
      int cnt = 0;
      for (int j = 0; j < 3; ++j) {
        if (i - j < pos) {
          ok = 1;
          break;
        }
        char c = s[i - j];
        if (c == s[i]) cnt++;
      }
      if (cnt == 3) continue;
      if (flag) printf(" ");
      for (int j = pos; j < i; ++j) printf("%c", s[j]);
      pos = i;
      flag = 1;
    }
  }
  if (flag) printf(" ");
  for (int j = pos; j <= n; ++j) printf("%c", s[j]);
  puts("");
  return 0;
}
