#include <bits/stdc++.h>
using namespace std;
const long long MAX = 1e9;
const long long N = 5e3 + 10;
char gl[5] = {'a', 'e', 'i', 'o', 'u'};
vector<long long> spaces;
bool isneed(char c) {
  for (long long i = 0; i < 5; i++)
    if (c == gl[i]) return false;
  return true;
}
int32_t main() {
  string a;
  cin >> a;
  long long sg = 0, i = 0;
  set<char> second;
  while (i < a.size()) {
    if (isneed(a[i])) {
      second.insert(a[i]);
      sg++;
    } else {
      sg = 0;
      second.clear();
    }
    if (sg >= 3 && second.size() > 1) {
      spaces.push_back(i - 1);
      second.clear();
      second.insert(a[i]);
      sg = 1;
    }
    i++;
  }
  long long sp = 0;
  for (long long i = 0; i < a.size(); i++) {
    cout << a[i];
    if (spaces.size() > sp && i == spaces[sp]) cout << ' ', sp++;
  }
  return 0;
}
