#include <bits/stdc++.h>
using namespace std;
const int N = 200005;
char s[N];
bool vowel[256];
int main() {
  vowel['a'] = vowel['e'] = vowel['i'] = vowel['o'] = vowel['u'] = true;
  scanf("%s", s);
  int i = 0;
  int cnt = 0, same = false;
  while (s[i]) {
    if (vowel[s[i]]) {
      putc(s[i], stdout);
      cnt = 0;
      same = false;
      i++;
      continue;
    }
    if (cnt == 0) {
      putc(s[i], stdout);
      cnt++;
    } else if (cnt == 1) {
      putc(s[i], stdout);
      cnt++;
      if (s[i] == s[i - 1]) same = true;
    } else if (cnt == 2) {
      if (same && s[i] == s[i - 1]) {
        cnt++;
        putc(s[i], stdout);
      } else {
        putc(' ', stdout);
        same = false;
        cnt = 0;
        i--;
      }
    } else {
      if (s[i] == s[i - 1]) {
        cnt++;
        putc(s[i], stdout);
      } else {
        putc(' ', stdout);
        same = false;
        cnt = 0;
        i--;
      }
    }
    i++;
  }
  putc('\n', stdout);
  return 0;
}
