#include <bits/stdc++.h>
using namespace std;
int n, l, r, cnt;
bool idx[3005];
char s[3005];
bool isvl(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 prv[3005], dp[3005];
void calc(int l, int r) {
  if (r - l + 1 <= 2) return;
  if (s[l] == s[l + 1] && s[l + 1] == s[l + 2]) {
    int j = l + 1;
    while (s[l] == s[j] && j <= r) j++;
    if (j > r) return;
    idx[j - 1] = 1;
    calc(j, r);
  } else {
    idx[l + 1] = 1;
    calc(l + 2, r);
  }
}
int main() {
  gets(s + 1);
  n = strlen(s + 1);
  s[n + 1] = 'a', n++;
  l = r = 1;
  for (r = 1; r <= n;) {
    while (isvl(s[l]) && l <= n) l++;
    if (l > n) break;
    r = l;
    while (!isvl(s[r]) && r <= n) r++;
    calc(l, r - 1);
    r = l = r + 1;
  }
  for (int i = 1; i < n; i++) {
    printf("%c", s[i]);
    if (idx[i]) printf(" ");
  }
}
