#include <bits/stdc++.h>
using namespace std;
const int N = 3005;
char s[N];
bool con(char s) {
  if (s == 0) return 0;
  if (s == 'a') return 0;
  if (s == 'e') return 0;
  if (s == 'i') return 0;
  if (s == 'o') return 0;
  if (s == 'u') return 0;
  return 1;
}
int main() {
  scanf("%s", s);
  int n = (int)strlen(s);
  char las1 = 0, las2 = 0;
  string ans;
  for (int i = 0; i < n; ++i) {
    if (con(s[i]) && con(las1) && con(las2) &&
        (las1 != las2 || las1 != s[i] || las2 != s[i])) {
      ans += ' ';
      las1 = 0;
      las2 = 0;
    }
    ans += s[i];
    las1 = las2;
    las2 = s[i];
  }
  printf("%s\n", ans.c_str());
}
