#include <iostream>
#include <ctime>
using namespace std;
class NameGen{
private:
int rnd_sml, rnd_cap;
char arr[6];
const char* alphab[4] ={
{"AEIOUY"},
{"BCDFGHJKLMNPQRSTVWXZ"},
{"aeiouy"},
{"bcdfghjklmnpqrstvwxz"}
};
public:
string genName()
{
srand(time(0));
for(int i=0; i< rand() % 6 + 2; ++i){
rnd_sml = rand() % 3 + 2;
rnd_cap = rand() % 2;
arr[i] = alphab[(i==0) ? rnd_cap : rnd_sml]
[(i==0) ? ((rnd_cap==0) ? rand() % 6 : rand() % 20) : ((rnd_sml==2) ? rand() % 6 : rand() % 20)];
}
return arr;
}
}alph;
int main()
{
cout << alph.genName()<< endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3RpbWU+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgpjbGFzcyBOYW1lR2VuewogICAgcHJpdmF0ZToKICAgICAgICBpbnQgcm5kX3NtbCwgcm5kX2NhcDsKICAgICAgICBjaGFyIGFycls2XTsKICAgICAgICBjb25zdCBjaGFyKiBhbHBoYWJbNF0gPXsKICAgICAgICB7IkFFSU9VWSJ9LAogICAgICAgIHsiQkNERkdISktMTU5QUVJTVFZXWFoifSwKICAgICAgICB7ImFlaW91eSJ9LAogICAgICAgIHsiYmNkZmdoamtsbW5wcXJzdHZ3eHoifQogICAgICAgIH07CgogICAgcHVibGljOgogICAgICAgIHN0cmluZyBnZW5OYW1lKCkKICAgICAgICB7CiAgICAgICAgICAgIHNyYW5kKHRpbWUoMCkpOwogICAgICAgICAgICBmb3IoaW50IGk9MDsgaTwgcmFuZCgpICUgNiArIDI7ICsraSl7CiAgICAgICAgICAgICAgICBybmRfc21sID0gcmFuZCgpICUgMyArIDI7CiAgICAgICAgICAgICAgICBybmRfY2FwID0gcmFuZCgpICUgMjsKICAgICAgICAgICAgICAgIGFycltpXSA9IGFscGhhYlsoaT09MCkgPyBybmRfY2FwIDogcm5kX3NtbF0KICAgICAgICAgICAgICAgIFsoaT09MCkgPyAoKHJuZF9jYXA9PTApID8gcmFuZCgpICUgNiA6IHJhbmQoKSAlIDIwKSA6ICgocm5kX3NtbD09MikgPyByYW5kKCkgJSA2IDogcmFuZCgpICUgMjApXTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gYXJyOwogICAgICAgIH0KfWFscGg7CgppbnQgbWFpbigpCnsKICAgIGNvdXQgPDwgYWxwaC5nZW5OYW1lKCk8PCBlbmRsOwogICAgcmV0dXJuIDA7Cn0K