#include <bits/stdc++.h>
using namespace std;
int n, i, nr;
char s[205], t[205], *p;
int main()
{
cin.getline(s, sizeof(s));
p = strtok(s, " ");
strcpy(t, p);
n = strlen(t);
if(strchr("aeiou", t[0]) && strchr("aeiou", t[n - 1]))
nr ++;
while(p != NULL)
{
p = strtok(NULL, " ");
if(p == NULL) break;
memset(t, 0, sizeof(t));
strcpy(t, p);
n = strlen(t);
if(strchr("aeiou", t[0]) && strchr("aeiou", t[n - 1]))
cout << t << " ";
}
return 0;
}