#include <bits/stdc++.h>
using namespace std;
bool isc(char c) {
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u')
    return false;
  else
    return true;
}
int main() {
  std::ios::sync_with_stdio(false);
  string s;
  string ans;
  cin >> s;
  int l = s.length();
  int i = 0;
  for (i = 0; i < l - 2; i++) {
    string temp = s.substr(i, 3);
    bool flag = true;
    for (int j = 0; j < 3; j++) {
      if (!isc(temp[j])) {
        ans += temp.substr(0, j + 1);
        flag = true;
        i += j;
        break;
      } else
        flag = false;
    }
    if (flag == false) {
      if (temp[0] != temp[1] || temp[1] != temp[2]) {
        ans.push_back(temp[0]);
        ans.push_back(temp[1]);
        ans.push_back(' ');
        i++;
      } else
        ans += s[i];
    }
  }
  while (i < l) ans.push_back(s[i++]);
  cout << ans << endl;
  return 0;
}
