#include <bits/stdc++.h>
using namespace std;
const long long linf = 1e18 + 5;
int mod = (int)1e9 + 7;
const int logN = 18;
const int inf = 1e9 + 9;
const int N = 2e5 + 6;
int main() {
  string str;
  cin >> str;
  char last = 0;
  int t = 0, cnt = 0;
  for (__typeof(str.begin()) it = str.begin(); it != str.end(); it++) {
    char c = *it;
    if (c == 'e' || c == 'u' || c == 'i' || c == 'o' || c == 'a') {
      t = 0;
      cout << c;
      last = cnt = 0;
      continue;
    }
    cnt++;
    if (last && last != c) t = 1;
    if (t == 1 && cnt > 2) {
      t = 0;
      cout << ' ' << c;
      last = c;
      cnt = 1;
      continue;
    }
    cout << c;
    last = c;
  }
  return 0;
}
