#include <bits/stdc++.h>
using namespace std;
char s[30100];
int n, co, cnt;
bool vis[26];
bool iscon(char c) {
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') return false;
  return true;
}
int main(int argc, char **argv) {
  scanf("%s", s);
  n = strlen(s);
  for (int i = 0, __yuki__ = n; i < __yuki__; ++i) {
    if (iscon(s[i])) {
      if (!vis[s[i] - 'a']) {
        vis[s[i] - 'a'] = true;
        ++cnt;
      }
      if (++co >= 3 && cnt >= 2) {
        putchar(' ');
        memset(vis, 0, sizeof(vis));
        vis[s[i] - 'a'] = true;
        cnt = co = 1;
      }
    } else {
      co = cnt = 0;
      memset(vis, 0, sizeof(vis));
    }
    putchar(s[i]);
  }
  puts("");
  return 0;
}
