#include <bits/stdc++.h>
using ll = long long;
using namespace std;
const ll mod = 1e9 + 7;
const int N = 2e5 + 5;
bool isOk(char& a) {
  return a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u';
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  int n = (int)(s.size());
  for (int i = 0; i < n; i++) {
    if (i + 3 <= n) {
      if (isOk(s[i]) || isOk(s[i + 1]) || isOk(s[i + 2]))
        cout << s[i];
      else if (s[i] == s[i + 1] && s[i + 1] == s[i + 2])
        cout << s[i];
      else
        cout << s[i] << s[i + 1] << " ", i++;
    } else
      cout << s[i];
  }
  return 0;
}
