#include <bits/stdc++.h>
using namespace std;
int n, i, S, SS, a[222222], v[222222], cnt[26];
char s[222222];
int main() {
  scanf("%s", s + 1);
  n = strlen(s + 1);
  for (int i = 1; i <= n; i++)
    if (s[i] != 'a' && s[i] != 'e' && s[i] != 'i' && s[i] != 'o' &&
        s[i] != 'u') {
      S++;
      if (S >= 3 && (s[i] != s[i - 1] || s[i] != s[i - 2])) {
        S = 1;
        v[i] = 1;
      }
    } else
      S = 0;
  for (int i = 1; i <= n; i++) {
    if (v[i]) putchar(' ');
    putchar(s[i]);
  }
}
