#include <bits/stdc++.h>
using namespace std;
int used[3001];
bool f(char c) {
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') return 0;
  return 1;
}
int main() {
  string s;
  cin >> s;
  for (int i = 2; i < s.size(); i++) {
    if (s[i] == s[i - 1] && s[i] == s[i - 2]) continue;
    if (f(s[i]) && f(s[i - 1]) && f(s[i - 2]))
      used[i] = 1, i = min((int)s.size(), i + 1);
  }
  for (int i = 0; i < s.size(); i++) {
    if (used[i]) cout << " ";
    cout << s[i];
  }
  return 0;
}
