#include <bits/stdc++.h>
using namespace std;
const int INF = 2000000005;
const long long INFLL = 1000000000000000002ll;
const long long MOD = 1000000007;
inline long long min(long long a, long long b, long long c) {
  return min(min(a, b), c);
}
inline long long min(long long a, long long b, long long c, long long d) {
  return min(min(min(a, b), c), d);
}
inline long long max(long long a, long long b, long long c) {
  return max(max(a, b), c);
}
inline long long max(long long a, long long b, long long c, long long d) {
  return max(max(max(a, b), c), d);
}
string S;
bool cons(char c) {
  return c != 'a' && c != 'e' && c != 'i' && c != 'o' && c != 'u' && c != ' ';
}
bool bad(char a, char b, char c) {
  set<char> s = {a, b, c};
  if (cons(a) && cons(b) && cons(c) && ((int)s.size()) > 1)
    return true;
  else
    return false;
}
int main() {
  cin >> S;
  int ans = 0;
  for (int i = (((int)S.size()) - 3); i >= (0); i--)
    if (bad(S[i], S[i + 1], S[i + 2])) {
      string s = S.substr(0, i + 1) + " " + S.substr(i + 1);
      S = s;
      ans++;
    }
  cout << S;
}
