#include <iostream>#include <cstdlib>#include <cstring>#include <string>#include <locale>using namespace std;int main(int argc, char *argv[]){ setlocale(LC_ALL,""); char dlt[]={"уеёэоаыяиюeyuioa"}; int dsize = sizeof(dlt)/sizeof(dlt[0]); char *ptr = NULL; string str; getline(cin,str); char cstr[str.length()+1]; strcpy(cstr, str.c_str()); ptr = strtok(cstr," "); while(ptr){ bool op = false; int size = sizeof(ptr)/sizeof(ptr[0])-1; for(int i = 0; i < dsize; i++) if(ptr[size-1] == dlt[i]) op = 1; if(!op) cout << ptr << " "; ptr = strtok(0," "); } return EXIT_SUCCESS;}