#include <bits/stdc++.h>
int main() {
  std::string s, ss = "aeiou";
  std::cin >> s;
  for (int i = 0; i < s.size(); i++)
    if ((s[i] != s[i + 1] || s[i + 1] != s[i + 2]) && ss.find(s[i]) == -1 &&
        ss.find(s[i + 1]) == -1 && ss.find(s[i + 2]) == -1 && s[i] != '\0' &&
        s[i + 1] != '\0')
      std::cout << s[i] << s[i + 1] << " ", i++;
    else if (s[i] != '\0')
      std::cout << s[i];
}
