#include <bits/stdc++.h>
using namespace std;
bool vouel(char c) {
  return (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u');
}
int main() {
  string s;
  cin >> s;
  string new_s = "";
  bool same = false;
  int streak = 0;
  char c = '0';
  for (int i = 0; i < s.length(); ++i) {
    if (vouel(s[i])) {
      new_s += s[i];
      same = false;
      streak = 0;
      c = '0';
    } else {
      if (streak == 2) {
        if (same) {
          if (s[i] == c) {
            new_s += s[i];
            continue;
          } else {
            new_s += ' ';
            new_s += s[i];
            same = true;
            streak = 1;
            c = s[i];
          }
        } else {
          new_s += ' ';
          new_s += s[i];
          same = true;
          streak = 1;
          c = s[i];
        }
      } else if (streak == 1) {
        if (s[i] == c) {
          streak += 1;
          same = true;
          new_s += s[i];
        } else {
          streak += 1;
          same = false;
          c = s[i];
          new_s += s[i];
        }
      } else if (streak == 0) {
        new_s += s[i];
        c = s[i];
        same = true;
        streak += 1;
      }
    }
  }
  cout << new_s << '\n';
  return 0;
}
