#include <iostream>
#include <string.h>
using namespace std;
int main(){
char mes[100],rez[100];
int i,nr=0,nr_m=0;
cout<<"Introduceti cuvant:";
cin.getline(mes,100);
for(i=0;i<strlen(mes);i++){
if(mes[i]=='a'||mes[i]=='e'||mes[i]=='i'||mes[i]=='o'||mes[i]=='u'||mes[i]=='m'){
rez[nr]=mes[i];
nr++;
}
if(mes[i]=='m'){
nr_m++;
}
}
if(nr==0||nr_m==nr){
cout<<"Nu exista";
}
else{
cout<<"Rezultat:"<<rez;
}
return 0;
}