#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const long long int LINF = 0x3f3f3f3f3f3f3f3fll;
const long double pi = acos(-1);
const int MOD = 1e9 + 7;
bool isvog(char c) {
  if (c == 'a') return true;
  if (c == 'e') return true;
  if (c == 'i') return true;
  if (c == 'o') return true;
  if (c == 'u') return true;
  return false;
}
int main() {
  string s;
  cin >> s;
  int cons = 0;
  char last = '.';
  bool pode = false;
  string r;
  string aux;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] != last and last != '.') {
      pode = true;
    }
    if (cons >= 2 and pode and !isvog(s[i])) {
      cons = 0;
      pode = false;
      r += aux;
      r.push_back(' ');
      aux.clear();
    }
    if (!isvog(s[i])) {
      last = s[i];
      cons++;
    } else {
      cons = 0;
      last = '.';
      pode = false;
    }
    aux.push_back(s[i]);
  }
  r += aux;
  cout << r << endl;
  return 0;
}
