#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3fffffff;
const int SINF = 0x7fffffff;
const long long LINF = 0x3fffffffffffffff;
const long long SLINF = 0x7fffffffffffffff;
const int MAXN = 3007;
bool C[127];
int n;
char s[MAXN];
bool a[MAXN];
void init();
void input();
void work();
int main() {
  init();
  input();
  work();
}
void init() {
  ios::sync_with_stdio(false);
  C['a'] = C['e'] = C['i'] = C['o'] = C['u'] = true;
}
void input() { scanf("%s", s); }
void work() {
  n = strlen(s);
  int cc = 0;
  bool dif = false;
  for (int i = 0; i < n; ++i) {
    if (!C[s[i]]) {
      ++cc;
      if (i && !C[s[i - 1]] && s[i] != s[i - 1]) {
        dif = true;
      }
      if (cc >= 3 && dif) {
        a[i] = true;
        cc = 1, dif = false;
      }
    } else {
      cc = 0, dif = false;
    }
  }
  for (int i = 0; i < n; ++i) {
    if (a[i]) putchar(' ');
    putchar(s[i]);
  }
  putchar('\n');
}
