#include <iostream>
#include <fstream>
#include <cstring>
using namespace std;
ifstream f("atestat.in");
ofstream g ("atestat.out");
char s[70], aux[70], sep[]=" ", *cuv, voc[]="AEIOU";
short n, i, m;
int main()
{
f.getline(s,70);
n=strlen(s);
strcpy(aux,s);;
for (i=0; i<n; ++i)
{
if ((s[i]>='A' && s[i]<='Z' && s[i+1]==' ')|| i==n-1)
s[i]=s[i]+('a'-'A');
}
cout << s << "\n";
for (i=0; i<n; ++i)
{
if (!strchr(voc,aux[i])) cout << aux[i];
}
cout << endl;
strcpy(s,aux);
int exista=0;
cuv=strtok(s,sep);
while (cuv)
{
if (cuv[1]=='A' || cuv[1]=='E' || cuv[1]=='I' || cuv[1]=='O' || cuv[1]=='U')
{ g << cuv << " "; exista=1; }
cuv=strtok(0,sep);
}
if (exista==0) g << "NU EXISTA ASTFEL DE CUVINTE";
}