#include <bits/stdc++.h>
using namespace std;
string s, ans = "";
bool ch(int i) {
  string t = "aeiou";
  if (t.find(s[i]) != -1)
    return 0;
  else
    return 1;
}
int main() {
  cin >> s;
  int n = s.length();
  for (int i = 0; i < n; i++) {
    bool b = 0;
    if (ch(i) && i > 1)
      if ((s[i] != s[i - 1] || s[i] != s[i - 2]) && ch(i - 2) && ch(i - 1))
        ans += " ", b = 1;
    ans += s[i];
    if (b) s[i - 1] = 'a';
  }
  cout << ans << endl;
}
