#include <bits/stdc++.h>
using namespace std;
int vow(char c) {
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') return 1;
  return 0;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int cn = 0;
  int n = s.size();
  string aa = "";
  vector<string> ans;
  for (int i = 0; i < s.size(); i++) {
    if (vow(s[i]))
      aa.push_back(s[i]);
    else {
      int x = aa.size();
      if (aa.size() < 2)
        aa.push_back(s[i]);
      else if (vow(aa[x - 1]) || vow(aa[x - 2]))
        aa.push_back(s[i]);
      else if (aa[x - 1] == aa[x - 2] && aa[x - 1] == s[i])
        aa.push_back(s[i]);
      else {
        ans.push_back(aa);
        aa = "";
        aa.push_back(s[i]);
      }
    }
  }
  if (aa.size()) ans.push_back(aa);
  cout << ans[0];
  for (int i = 1; i < ans.size(); i++) cout << " " << ans[i];
}
