#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  int n, cnt = 0, x, f = 0;
  string s;
  char vow[] = {'a', 'e', 'i', 'o', 'u'};
  cin >> s;
  n = s.length();
  vector<string> ans;
  if (n <= 2) {
    cout << s;
    return 0;
  }
  ans.push_back(s.substr(0, min(n, 2)));
  for (int i = 0; i < 5; i++) {
    if (s[1] == vow[i]) {
      f = 1;
      break;
    }
  }
  if (f == 0) {
    cnt++;
    for (int i = 0; i < 5; i++) {
      if (s[0] == vow[i]) {
        f = 1;
        break;
      }
    }
    if (!f) {
      cnt++;
    }
  }
  for (int i = 2; i < n; i++) {
    f = 0;
    x = ans.size() - 1;
    if (cnt < 2) {
      ans[x] += s[i];
      for (int j = 0; j < 5; j++) {
        if (s[i] == vow[j]) {
          f = 1;
          break;
        }
      }
      if (f) {
        cnt = 0;
      } else
        cnt++;
    } else {
      for (int j = 0; j < 5; j++) {
        if (s[i] == vow[j]) {
          f = 1;
          break;
        }
      }
      if (f) {
        cnt = 0;
        ans[x] += s[i];
      } else {
        if (s[i] == s[i - 1] && s[i - 1] == s[i - 2]) {
          ans[x] += s[i];
        } else {
          ans.push_back("");
          x++;
          ans[x] += s[i];
          cnt = 1;
        }
      }
    }
  }
  for (auto it : ans) {
    cout << it << " ";
  }
  return 0;
}
