#include <bits/stdc++.h>
using namespace std;
int T, n, i, vis[130], las, fl, l, j, x, y, v;
char s[100005];
int main() {
  scanf("%s", s + 1);
  l = strlen(s + 1);
  vis['a'] = vis['e'] = vis['i'] = vis['o'] = vis['u'] = 1;
  for (las = i = 1; i <= l; ++i) {
    if (i > 1 && (!vis[s[i]] && !vis[s[i - 1]])) fl |= s[i] != s[i - 1];
    if (!vis[s[i]] && i - las >= 2 && fl) {
      cout << " ";
      fl = 0;
      las = i;
    }
    if (vis[s[i]]) las = i + 1, fl = 0;
    cout << s[i];
  }
}
