#include <bits/stdc++.h>
using namespace std;
bool conso(char p) {
  if (p == 'a' || p == 'e' || p == 'i' || p == 'o' || p == 'u' || p == ' ')
    return 0;
  else
    return 1;
}
bool same(char p, char q) {
  if (p == q)
    return 1;
  else
    return 0;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  vector<char> p, q;
  for (int i = 0; i < s.size(); i++) p.push_back(s[i]);
  p.push_back('a');
  p.push_back('a');
  for (int i = 2; i < p.size(); i++) {
    if (conso(p[i]) && conso(p[i - 1]) && conso(p[i - 2])) {
      if (same(p[i], p[i - 1]) && same(p[i - 1], p[i - 2])) {
        q.push_back(p[i - 2]);
      } else {
        q.push_back(p[i - 2]);
        q.push_back(p[i - 1]);
        q.push_back(' ');
        i += 1;
      }
    } else {
      q.push_back(p[i - 2]);
    }
  }
  for (int i = 0; i < q.size(); i++) cout << q[i];
}
