#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  string a;
  cin >> a;
  int n = a.length(), i, j;
  if (n <= 2) {
    cout << a << "\n";
    return 0;
  }
  for (i = 2; i < n;) {
    for (j = 0; j < 3; j++) {
      if ((a[i - j] == 'a' || a[i - j] == 'e' || a[i - j] == 'i' ||
           a[i - j] == 'o' || a[i - j] == 'u'))
        break;
    }
    if (j == 3 && !(a[i] == a[i - 1] && a[i - 1] == a[i - 2])) {
      cout << a[i - 2] << a[i - 1];
      cout << " ";
      if (i + 2 >= n) break;
      i += 2;
    } else {
      cout << a[i - 2];
      i++;
      if (i == n) cout << a[i - 2] << a[i - 1];
    }
  }
  for (; i < n; i++) {
    cout << a[i];
  }
  cout << "\n";
}
