#include <bits/stdc++.h>
using namespace std;
string s;
bool is_sogl(char h) {
  if (h == 'a' || h == 'e' || h == 'i' || h == 'o' || h == 'u') return false;
  return true;
}
int main() {
  cin >> s;
  int now = 0;
  for (int i = 0; i < s.size(); i++) {
    if (is_sogl(s[i])) {
      cout << s[i];
      i++;
      int how = 1;
      while (i < s.size() && s[i] == s[i - 1]) {
        cout << s[i];
        i++;
        how++;
      }
      now++;
      if (i != s.size() && is_sogl(s[i])) {
        if (how > 1) {
          cout << ' ';
          now = 0;
        } else if (now > 1) {
          cout << ' ';
          now = 0;
        } else if (i + 1 != s.size() && s[i] == s[i + 1]) {
          cout << s[i++] << ' ';
          now = 0;
        }
      }
      i--;
    } else {
      cout << s[i];
      now = 0;
    }
  }
  return 0;
}
