#include <bits/stdc++.h>
using namespace std;
const int N = -1;
const int INF = 1.01e9;
bool cons(char ch) {
  return (ch != 'a' && ch != 'o' && ch != 'e' && ch != 'i' && ch != 'u');
}
int main() {
  string s;
  cin >> s;
  string buf;
  for (auto ch : s) {
    if (buf.size() >= 2 && cons(ch) && cons(buf.back()) &&
        cons(buf[buf.size() - 2]) &&
        !(ch == buf.back() && ch == buf[buf.size() - 2])) {
      cout << buf << " ";
      buf.clear();
    }
    buf.push_back(ch);
  }
  cout << buf << endl;
  return 0;
}
