#include <bits/stdc++.h>
using namespace std;
bool vowel(char c) {
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
    return true;
  }
  return false;
}
int main() {
  string text;
  string result = "";
  cin >> text;
  int i = 0;
  while (i < text.size()) {
    while (i < text.size() && vowel(text[i])) {
      result = result + text[i];
      i++;
    }
    char current_char = text[i];
    int total_run = 0;
    while (i < text.size() && text[i] == current_char) {
      result = result + text[i];
      total_run++;
      i++;
    }
    if (total_run == 1 && i + 1 < text.size()) {
      if (!vowel(text[i]) && !vowel(text[i + 1])) {
        result = result + text[i] + ' ';
        i++;
      }
    }
    if (total_run > 1) {
      if (i < text.size() && !vowel(text[i])) {
        result = result + ' ';
      }
    }
  }
  cout << result << endl;
  return 0;
}
