#include <bits/stdc++.h>
using namespace std;
string s;
bool cons(char x) {
  return !(x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u');
}
long long int dist(long long int i) {
  set<long long int> a;
  a.insert(s[i]);
  a.insert(s[i - 1]);
  a.insert(s[i + 1]);
  return a.size();
}
int main() {
  cin >> s;
  cout << s[0];
  int i = 0;
  for (i = 1; i < s.length() - 1; i++) {
    if (cons(s[i - 1]) && cons(s[i + 1]) && cons(s[i]) && dist(i) >= 2)
      cout << s[i] << " " << s[i + 1], i++;
    else
      cout << s[i];
  }
  if (i < s.length()) cout << s[s.length() - 1];
  cout << '\n';
  return 0;
}
