#include <bits/stdc++.h>
using namespace std;
bool isValid(char ch) {
  if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u') return 1;
  return 0;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  int n = s.size();
  int countersame = 1, counterlen = 0;
  int dp[n];
  for (int i = 0; i < n; i++) dp[i] = 0;
  if (!isValid(s[0])) counterlen = 1;
  for (int i = 0; i < n - 2; i++) {
    if (isValid(s[i]) || dp[i] == 1)
      continue;
    else {
      char ch = s[i];
      countersame = 0;
      counterlen = 0;
      for (int j = 0; j < 3; j++) {
        if (isValid(s[i + j]))
          break;
        else {
          if (ch == s[i + j]) countersame++;
          counterlen++;
        }
      }
      if (countersame != 3 && counterlen == 3) dp[i + 1] = 1;
    }
  }
  for (int i = 0; i < n; i++) {
    if (dp[i] == 1) {
      cout << s[i] << " ";
    } else
      cout << s[i];
  }
  return 0;
}
