#include <bits/stdc++.h>
using namespace std;
void __print(int x) { cerr << x; }
void __print(long long x) { cerr << x; }
void __print(unsigned x) { cerr << x; }
void __print(unsigned long long x) { cerr << x; }
void __print(double x) { cerr << x; }
void __print(long double x) { cerr << x; }
void __print(char x) { cerr << '\'' << x << '\''; }
void __print(const string &x) { cerr << '\"' << x << '\"'; }
void __print(bool x) { cerr << (x ? "true" : "false"); }
template <typename T, typename V>
void __print(const pair<T, V> &x) {
  cerr << '{';
  __print(x.first);
  cerr << ',';
  __print(x.second);
  cerr << '}';
}
template <typename T>
void __print(const T &x) {
  int f = 0;
  cerr << '{';
  for (auto &i : x) cerr << (f++ ? "," : ""), __print(i);
  cerr << "}";
}
void _print() { cerr << "]\n"; }
template <typename T, typename... V>
void _print(T t, V... v) {
  __print(t);
  if (sizeof...(v)) cerr << ", ";
  _print(v...);
}
long long dx[] = {-1, -1, -1, 0, 0, 1, 1, 1};
long long dy[] = {-1, 0, 1, -1, 1, -1, 0, 1};
const long double pi = 3.1415926535897932384626433832795;
const long long INF = 1e18;
const long long mod = 1000000007;
const long long maxn = 1e5 + 5;
template <typename T>
void printv(const vector<T> &v) {
  for (auto i : v) cout << i << ' ';
  cout << '\n';
}
template <typename T>
void printv(const vector<pair<T, T>> &v) {
  for (auto p : v) cout << "(" << p.first << "," << p.second << "),";
  cout << '\n';
}
bool vowel(char ch) {
  return (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u');
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(nullptr);
  string s;
  cin >> s;
  long long n = s.size();
  vector<long long> pref(n);
  string ans = "";
  map<char, long long> mp;
  multiset<char> st;
  for (long long i = 0; i < n; i++) {
    if (!vowel(s[i])) {
      mp[s[i]]++;
      st.insert(s[i]);
      if (st.size() >= 3 && mp.size() >= 2) {
        char ch = ans.back();
        ans.push_back(' ');
        mp.clear();
        st.clear();
        mp[s[i]]++;
        st.insert(s[i]);
      }
    } else {
      mp.clear();
      st.clear();
    }
    ans.push_back(s[i]);
  }
  cout << ans << '\n';
  return 0;
}
