#include <bits/stdc++.h>
using namespace std;
const int maxn = 3005;
const int maxnn = 500005;
const int mod = 998244353;
const int infi = (2e9 + 69);
const long long infy = (2e16 + 69);
const int base = 311;
const long long MM = 1ll * mod * mod;
const int addition = 1e6;
int n, f[maxn][maxn];
bool vowel(char x) {
  switch (x) {
    case 'a':
    case 'e':
    case 'i':
    case 'o':
    case 'u':
      return 1;
    default:
      return 0;
  }
}
bool typo(char a, char b, char c) {
  if (a != b || b != c || c != a)
    if (!vowel(a) && !vowel(b) && !vowel(c)) return 1;
  return 0;
}
void Process() {
  string s, res = "";
  cin >> s;
  s += "                                               ";
  int n = s.length();
  int l = n;
  for (int i = 0; i < n; i++) {
    if (i > 0 && typo(s[i - 1], s[i], s[i + 1])) {
      res = res + s[i] + " " + s[i + 1];
      l++;
      i++;
    } else
      res += s[i];
  }
  cout << res.substr(0, l - 1);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int test = 1;
  while (test--) Process();
}
