#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
const int INF = 0x3f3f3f3f;
const int MOD = 1e9 + 7;
const double EPS = 1e-9;
int getint() {
  int x = 0;
  char c = getchar();
  while (c != '-' && c != '+' && !isdigit(c)) c = getchar();
  int flag = '-' == c ? -1 : 1;
  while (isdigit(c)) {
    x = x * 10 + c - '0';
    c = getchar();
  }
  return flag * x;
}
void putint(int x) {
  char s[15];
  if (x < 0) putchar('-'), x = -x;
  int l = 0;
  if (!x) putchar('0');
  while (x) s[++l] = x % 10 + '0', x /= 10;
  while (l) putchar(s[l--]);
}
char s[3015];
bool fu(char c) {
  return c != 'a' && c != 'e' && c != 'i' && c != 'o' && c != 'u';
}
int main() {
  scanf("%s", s + 1);
  int l = strlen(s + 1), cnt_l = 0;
  set<char> ss;
  for (int i = 1; i <= l; ++i) {
    if (fu(s[i])) {
      ss.insert(s[i]);
      ++cnt_l;
      if (cnt_l >= 3 && ss.size() > 1) {
        putchar(' ');
        cnt_l = 1;
        ss.clear();
        ss.insert(s[i]);
      }
    } else {
      cnt_l = 0;
      ss.clear();
    }
    putchar(s[i]);
  }
  return 0;
}
