#include <bits/stdc++.h>
using namespace std;
int main() {
  string s = "", l = "", a = "aeiou";
  char c;
  while (cin >> c) {
    if (a.find(c) == string::npos)
      l += c;
    else {
      s += l + c;
      l = "";
    }
    if (l.size() == 3)
      if (l[0] != l[1] || l[1] != l[2] || l[0] != l[2]) {
        s = s + l[0] + l[1] + ' ';
        l = l.substr(2, 2);
      } else {
        s += l[0];
        l = l.substr(1, 2);
      }
  }
  cout << s + l;
}
