#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  cout.tie(0);
  ios_base::sync_with_stdio(0);
  string s;
  cin >> s;
  string v = "aeiou";
  string c = "bcdfghjklmnpqrstvwxyz";
  map<char, int> cnt;
  map<char, int> mp;
  for (auto i : v) mp[i] = 1;
  for (auto i : c) mp[i] = 0;
  string temp = "";
  int vc = 0;
  int cc = 0;
  int dc = 0;
  vector<string> ans;
  for (int i = 0; i < s.size(); i++) {
    if (mp[s[i]] == 1) {
      cc = 0;
      dc = 0;
      for (auto j : c) cnt[j] = 0;
    } else {
      if (cnt[s[i]] == 0) {
        cnt[s[i]]++;
        dc++;
        cc++;
      } else {
        cnt[s[i]]++;
        cc++;
      }
    }
    if (cc > 2 && dc > 1) {
      ans.push_back(temp);
      for (auto j : c) cnt[j] = 0;
      cnt[s[i]] = 1;
      cc = 1;
      dc = 1;
      temp = s[i];
    } else
      temp += s[i];
  }
  ans.push_back(temp);
  for (auto i : ans) cout << i << " ";
  return 0;
}
