#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const long long linf = 1e18;
const int N = 3000 + 10;
string s;
int l = -1, r = -1;
bool used[26];
vector<int> ans;
bool check(char x) {
  if (x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u') return 0;
  return 1;
}
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> s;
  int sz = s.size();
  for (int i = 0; i <= sz - 1; i++) {
    if (check(s[i])) {
      if (l == -1) {
        l = r = i;
        if (!used[s[i] - 'a']) used[s[i] - 'a'] = 1;
      } else {
        r = i;
        if (!used[s[i] - 'a']) used[s[i] - 'a'] = 1;
        if (r - l + 1 >= 3) {
          int cnt = 0;
          for (int j = 0; j <= 25; j++)
            if (used[j]) cnt++;
          if (cnt >= 2) {
            ans.push_back(i);
            l = r = i;
            memset(used, 0, sizeof used);
            used[s[i] - 'a'] = 1;
          }
        }
      }
    } else {
      l = r = -1;
      memset(used, 0, sizeof used);
    }
  }
  int p = 0;
  for (int i = 0; i <= sz - 1; i++) {
    if (p < ans.size() && ans[p] == i) {
      cout << " ";
      p++;
    }
    cout << s[i];
  }
  cout << endl;
  return 0;
}
