#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
set<char> g;
set<char> q;
vector<int> f(123456);
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  g.insert('a');
  g.insert('e');
  g.insert('o');
  g.insert('i');
  g.insert('u');
  int cur = 0;
  for (int i = 0; i < s.size(); i++) {
    if (g.find(s[i]) != g.end()) {
      cur = 0;
      q.clear();
      continue;
    }
    cur++;
    q.insert(s[i]);
    if (cur > 2 && q.size() > 1) {
      f[i - 1] = 1;
      cur = 1;
      q.clear();
      q.insert(s[i]);
    }
  }
  for (int i = 0; i < s.size(); i++) {
    cout << s[i];
    if (f[i] == 1) cout << ' ';
  }
  return 0;
}
