#include <bits/stdc++.h>
using namespace std;
int main() {
  int a = 0;
  string x;
  cin >> x;
  for (int i = 0; i < x.length(); i++) {
    if (x[i] != 'a' && x[i] != 'e' && x[i] != 'i' && x[i] != 'o' &&
        x[i] != 'u') {
      a++;
    } else
      a = 0;
    if (x[i] == x[i - 1] && x[i] == x[i - 2] && x[i] != 'a' && x[i] != 'e' &&
        x[i] != 'i' && x[i] != 'o' && x[i] != 'u')
      a = 2;
    if (a == 3) {
      cout << " ";
      a = 1;
    }
    cout << x[i];
  }
  return 0;
}
