#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  cin >> s;
  int ans = 0;
  string q = "aeiou";
  for (int i = 0; i < s.size(); i++) {
    bool z = 0;
    for (int j = 0; j < q.size(); j++) {
      if (s[i] == q[j]) z = 1;
    }
    if (z)
      ans = 0;
    else
      ans++;
    if (ans == 3) {
      int w = 0;
      bool v = 0;
      for (int j = i; j >= 0; j--) {
        if (s[i] != s[j]) v = 1;
        w++;
        if (w == 3) break;
      }
      if (v) {
        cout << " " << s[i];
        ans = 1;
        continue;
      }
      char x = s[i];
      while (s[i] == x) {
        cout << x;
        i++;
      }
      ans = 2;
      i--;
      continue;
    }
    cout << s[i];
  }
  puts("");
}
