#include <bits/stdc++.h>
using namespace std;
string s, ss, s1;
int main() {
  cin >> s;
  ss = "";
  s1 = "aeiou";
  int w = 0, w1 = 0;
  char c;
  for (int i = 0; i < s.size(); i++) {
    c = s[i];
    bool b = 1;
    for (int j = 0; j < s1.size(); j++)
      if (c == s1[j]) b = 0;
    if (b) {
      if (i == 0) {
        ss += c;
        w++;
        w1 = 1;
      }
      if (i > 0) {
        if (c != s[i - 1]) {
          w++;
          w1 = 1;
        } else {
          if (w1 == 1) w++;
          w1++;
        }
        if (w == 3) {
          w = 1;
          ss += " ";
          w1 = 1;
        }
        ss += c;
      }
    } else {
      w = 0;
      ss += c;
      w1 = 0;
    }
  }
  cout << ss;
  return 0;
}
