#include <bits/stdc++.h>
using namespace std;
const int INF = (int)1e9;
const int mod = (int)1e9 + 7;
const int MAX = (int)5e3 + 5;
inline bool check(char ch) {
  if (ch == 'a') return 1;
  if (ch == 'e') return 1;
  if (ch == 'i') return 1;
  if (ch == 'o') return 1;
  if (ch == 'u') return 1;
  return 0;
}
int cnt[26];
int main(void) {
  string s;
  cin >> s;
  int l = s.length();
  int la = -1, k = 0, t = 0;
  for (int i = 0; i < (l); ++i) {
    if (check(s[i])) {
      if (k) {
        k = 0;
        t = 0;
        memset(cnt, 0, sizeof(cnt));
        ;
      }
      continue;
    } else {
      if (!cnt[s[i] - 'a']) {
        k++;
      }
      cnt[s[i] - 'a']++;
      t++;
      if (t >= 3 && k >= 2) {
        for (int j = (la + 1); j < (i); ++j) printf("%c", s[j]);
        putchar(' ');
        t = 1;
        k = 1;
        memset(cnt, 0, sizeof(cnt));
        ;
        cnt[s[i] - 'a'] = 1;
        la = i - 1;
      }
    }
  }
  for (int j = (la + 1); j < (l); ++j) printf("%c", s[j]);
  return 0;
}
