#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline bool chkmin(T &a, const T &b) {
  return a > b ? a = b, 1 : 0;
}
template <typename T>
inline bool chkmax(T &a, const T &b) {
  return a < b ? a = b, 1 : 0;
}
template <typename T>
inline bool smin(T &a, const T &b) {
  return a > b ? a = b : a;
}
template <typename T>
inline bool smax(T &a, const T &b) {
  return a < b ? a = b : a;
}
const int N = (int)0, mod = (int)0;
int main() {
  string s, res = "";
  cin >> s;
  int cnt = 0, lst0 = 0, lst1 = 0;
  for (char c : s) {
    if (c == 'a' || c == 'i' || c == 'u' || c == 'o' || c == 'e') {
      cnt = 0;
      lst0 = lst1 = 0;
    } else {
      if (cnt >= 2 && (lst0 != lst1 || lst1 != c || lst0 != c)) {
        res += ' ';
        cnt = lst0 = lst1 = 0;
      }
      lst1 = lst0;
      lst0 = c;
      cnt++;
    }
    res += c;
  }
  cout << res << endl;
}
