#include <bits/stdc++.h>
using namespace std;
const long long N = (1e6 + 10);
const long long mod = (1e9 + 7);
const long long inf = (1e6 + 7);
int b[N];
bool f(char ch) {
  if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u') {
    return false;
  } else {
    return true;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int n = s.size();
  s = s + "@" + s;
  for (int i = 0; i < n; i++) {
    if (f(s[i]) && f(s[i + 1]) && f(s[i + 2])) {
      if ((s[i] != s[i + 1] && s[i + 1] != s[i + 2] && s[i + 2] != s[i]) ||
          (s[i + 1] != s[i + 2]) || (s[i] != s[i + 2])) {
        b[i + 1] = 1;
        i++;
      }
    }
  }
  for (int i = 0; i < n; i++) {
    cout << s[i];
    if (b[i]) {
      cout << " ";
    }
  }
}
