#include <bits/stdc++.h>
using namespace std;
template <class T>
inline void upd1(T& a, T b) {
  a > b ? a = b : 0;
}
template <class T>
inline void upd2(T& a, T b) {
  a < b ? a = b : 0;
}
struct ano {
  operator long long() {
    long long x = 0, y = 0, c = getchar();
    while (c < 48) y = c == 45, c = getchar();
    while (c > 47) x = x * 10 + c - 48, c = getchar();
    return y ? -x : x;
  }
} buf;
char s[100005];
bool vis[256];
int main() {
  for (int i = 0; i < 5; ++i) vis["aeiou"[i]] = 1;
  scanf("%s", s);
  int cnt = 0;
  for (int i = 0; s[i]; ++i) {
    vis[s[i]] ? cnt = 0 : ++cnt;
    if (cnt > 2 && (s[i] != s[i - 1] || s[i - 1] != s[i - 2]))
      putchar(32), cnt = 1;
    putchar(s[i]);
  }
  puts("");
}
