#include <bits/stdc++.h>
using namespace std;
string s, v;
bool g(char k) {
  return (k == 'a' || k == 'e' || k == 'i' || k == 'o' || k == 'u');
}
int main() {
  ios_base::sync_with_stdio(0);
  cin >> s;
  long long tek = 0;
  char t1 = '-', t2 = '-';
  for (long long i = 0; i < s.size(); i++) {
    if (!g(s[i])) {
      if (t1 == '-') {
        t1 = s[i];
        ++tek;
        v += s[i];
      } else if (t2 == '-') {
        t2 = s[i];
        ++tek;
        v += s[i];
      } else if (s[i] == t1 && s[i] == t2) {
        ++tek;
        v += s[i];
      } else {
        char k = s[i];
        v += " ";
        cout << v;
        t1 = k;
        t2 = '-';
        tek = 1;
        v = "";
        v += t1;
      }
    } else {
      t1 = '-';
      t2 = '-';
      tek = 0;
      v += s[i];
    }
  }
  cout << v;
}
