#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline bool chkmin(T &a, const T &b) {
  return a > b ? a = b, 1 : 0;
}
template <typename T>
inline bool chkmax(T &a, const T &b) {
  return a < b ? a = b, 1 : 0;
}
inline int read() {
  register int c = getchar(), sum(0), fg(1);
  while (c < '0' || c > '9') {
    if (c == '-') fg = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') sum = sum * 10 + c - '0', c = getchar();
  return sum * fg;
}
const int oo = 0x3f3f3f3f;
const int maxn = 3000;
int N, M;
inline bool check(const char &c) {
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') return 0;
  return 1;
}
char s[maxn + 5];
int main() {
  scanf("%s", s + 1);
  char last1, last2;
  int cnt = 0;
  for (int i = (1), i_end_ = (strlen(s + 1)); i <= i_end_; ++i)
    if (!check(s[i]))
      putchar(s[i]), cnt = 0;
    else {
      if (!cnt)
        ++cnt, last1 = s[i];
      else if (cnt == 1)
        ++cnt, last2 = s[i];
      else if (cnt == 2)
        if (!(last1 == last2 && last2 == s[i]))
          putchar(' '), cnt = 1, last1 = s[i];
      putchar(s[i]);
    }
  return 0;
}
