#include <bits/stdc++.h>
using namespace std;
int mp[500], tot, flag;
char s[5000];
int main() {
  scanf("%s", s);
  mp['a'] = mp['e'] = mp['i'] = mp['o'] = mp['u'] = 1;
  for (int i = 0; s[i]; ++i)
    if (mp[s[i]])
      putchar(s[i]), tot = 0, flag = 0;
    else {
      ++tot;
      if (tot > 1 && s[i] != s[i - 1]) flag = 1;
      if (flag && tot > 2) putchar(' '), tot = 1, flag = 0;
      putchar(s[i]);
    }
  return 0;
}
