#include <bits/stdc++.h>
using namespace std;
string s, tmp;
bool isCon(char c) {
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') return false;
  return true;
}
int main() {
  ios::sync_with_stdio(false);
  cin >> s;
  int letter = 0, len = 0;
  for (auto t : s) {
    if (!isCon(t)) {
      tmp.push_back(t);
      letter = len = 0;
      continue;
    }
    if (!tmp.empty() && t == *tmp.rbegin() && letter == 1) {
      tmp.push_back(t);
      len++;
    } else if (len <= 1) {
      tmp.push_back(t);
      len++;
      letter++;
    } else {
      cout << tmp << ' ';
      tmp.clear();
      tmp.push_back(t);
      letter = len = 1;
    }
  }
  if (!tmp.empty()) cout << tmp << endl;
  return 0;
}
