#include <bits/stdc++.h>
using namespace std;
const long long N = 1e9 + 7;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  string s;
  cin >> s;
  long long n = s.size();
  long long dp[s.size()];
  long long cnt = 0;
  dp[0] = 0;
  set<char> st;
  if (!(s[0] == 'a' || s[0] == 'e' || s[0] == 'i' || s[0] == 'o' ||
        s[0] == 'u'))
    cnt = 1, st.insert(s[0]);
  for (long long i = 1; i < n; i++) {
    dp[i] = 0;
    if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' ||
        s[i] == 'u') {
      cnt = 0;
      st.clear();
    } else {
      cnt++;
      st.insert(s[i]);
      if (cnt >= 3) {
        if (st.size() > 1) {
          dp[i - 1] = 1;
          cnt = 1;
          st.clear();
          st.insert(s[i]);
        }
      }
    }
  }
  for (long long i = 0; i < n; i++) {
    cout << s[i];
    if (dp[i] == 1) cout << " ";
  }
}
