#include <bits/stdc++.h>
using namespace std;
const long long int N = 1e3 + 10;
const long long int mod = 1e9 + 7;
const long long int level = 17;
long long int dx[] = {-2, -2, 1, -1};
long long int dy[] = {1, -1, -2, -2};
map<char, long long int> vowel;
int main() {
  ios::sync_with_stdio(false);
  vowel['a'] = true;
  vowel['e'] = true;
  vowel['i'] = true;
  vowel['o'] = true;
  vowel['u'] = true;
  string s;
  cin >> s;
  long long int n = s.length();
  long long int i = 0;
  string ans = "";
  long long int consonants = 0;
  while (i < n) {
    while (i < n and vowel.find(s[i]) != vowel.end()) {
      ans += s[i];
      i++;
    }
    if ((i + 2) >= n) {
      while (i < n) {
        ans += s[i++];
      }
      break;
    }
    if (vowel.find(s[i]) == vowel.end() and
        vowel.find(s[i + 1]) == vowel.end() and
        vowel.find(s[i + 2]) == vowel.end()) {
      if (s[i] == s[i + 1] and s[i] == s[i + 2]) {
        ans += s[i];
        i++;
      } else {
        ans += s[i++];
        ans += s[i++];
        ans += ' ';
      }
    } else {
      ans += s[i++];
    }
  }
  cout << ans << endl;
  return 0;
}
