#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
const int mod = 1e9 + 7;
long long int hah[26], fact[N];
int isvow(char ch) {
  if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u') return 1;
  return 0;
}
int main() {
  string s;
  cin >> s;
  s += "aa";
  for (int i = 0; i < s.size() - 2; ++i) {
    if ((s[i] == s[i + 1] && s[i + 2] == s[i]) || isvow(s[i]) ||
        isvow(s[i + 1]) || isvow(s[i + 2])) {
      cout << s[i];
    } else {
      cout << s[i] << s[i + 1] << " ";
      i++;
    }
  }
}
