#include <iostream>
#include <fstream>
#include <cstring>
using namespace std;
bool isVocal(char c) {
char vocals[12] = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U', '\0'};
for (int i = 0; vocals[i] != '\0'; ++i) {
if (c == vocals[i]) {
return true;
}
}
return false;
}
int noVocals(const char* cuv) {
int howManyVocals = 0;
for (int i = 0; cuv[i] != '\0'; ++i) {
if (isVocal(cuv[i])) {
++howManyVocals;
}
}
return howManyVocals;
}
int main() {
int k;
cin >> k;
cin.ignore();
char text[300];
char correctCuv[100];
int indx = 0, i = 0;
while (cin >> text) {
if (isalpha(text[i])) {
correctCuv[indx++] = text[i];
} else {
if (indx > 0) {
correctCuv[indx] = '\0';
if (noVocals(correctCuv) >= k) {
cout << correctCuv << "\n";
}
indx = 0;
}
}
}
if (indx > 0) {
correctCuv[indx] = '\0';
if (noVocals(correctCuv) >= k) {
cout << correctCuv << "\n";
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8ZnN0cmVhbT4KI2luY2x1ZGUgPGNzdHJpbmc+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7Cgpib29sIGlzVm9jYWwoY2hhciBjKSB7CiAgICBjaGFyIHZvY2Fsc1sxMl0gPSB7J2EnLCAnZScsICdpJywgJ28nLCAndScsICdBJywgJ0UnLCAnSScsICdPJywgJ1UnLCAnXDAnfTsKICAgIGZvciAoaW50IGkgPSAwOyB2b2NhbHNbaV0gIT0gJ1wwJzsgKytpKSB7CiAgICAgICAgaWYgKGMgPT0gdm9jYWxzW2ldKSB7CiAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgIH0KICAgIH0KICAgIHJldHVybiBmYWxzZTsKfQoKaW50IG5vVm9jYWxzKGNvbnN0IGNoYXIqIGN1dikgewogICAgaW50IGhvd01hbnlWb2NhbHMgPSAwOwogICAgZm9yIChpbnQgaSA9IDA7IGN1dltpXSAhPSAnXDAnOyArK2kpIHsKICAgICAgICBpZiAoaXNWb2NhbChjdXZbaV0pKSB7CiAgICAgICAgICAgICsraG93TWFueVZvY2FsczsKICAgICAgICB9CiAgICB9CiAgICByZXR1cm4gaG93TWFueVZvY2FsczsKfQoKaW50IG1haW4oKSB7CiAgICBpbnQgazsKICAgIGNpbiA+PiBrOwogICAgY2luLmlnbm9yZSgpOwogICAgY2hhciB0ZXh0WzMwMF07CiAgICBjaGFyIGNvcnJlY3RDdXZbMTAwXTsKICAgIGludCBpbmR4ID0gMCwgaSA9IDA7CiAgICB3aGlsZSAoY2luID4+IHRleHQpIHsKICAgICAgICBpZiAoaXNhbHBoYSh0ZXh0W2ldKSkgewogICAgICAgICAgICBjb3JyZWN0Q3V2W2luZHgrK10gPSB0ZXh0W2ldOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIGlmIChpbmR4ID4gMCkgewogICAgICAgICAgICAgICAgY29ycmVjdEN1dltpbmR4XSA9ICdcMCc7CiAgICAgICAgICAgICAgICBpZiAobm9Wb2NhbHMoY29ycmVjdEN1dikgPj0gaykgewogICAgICAgICAgICAgICAgICAgIGNvdXQgPDwgY29ycmVjdEN1diA8PCAiXG4iOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgaW5keCA9IDA7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9CiAgICBpZiAoaW5keCA+IDApIHsKICAgICAgICBjb3JyZWN0Q3V2W2luZHhdID0gJ1wwJzsKICAgICAgICBpZiAobm9Wb2NhbHMoY29ycmVjdEN1dikgPj0gaykgewogICAgICAgICAgICBjb3V0IDw8IGNvcnJlY3RDdXYgPDwgIlxuIjsKICAgICAgICB9CiAgICB9CiAgICByZXR1cm4gMDsKfQo=