#include<bits/stdc++.h>
using namespace std;
#define int long long
const int MOD = 1e9 + 7;
const int N = 2e5 + 5;
signed main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int q;
cin >> q;
while(q--)
{
string s;
cin >> s;
for (int i = 0;i<=s.size()-1;i++)
{
if (s[i]=='a'||s[i]=='A') cout << "A";
else if (s[i]=='e'||s[i]=='E') cout << "E";
else if (s[i]=='o'||s[i]=='O') cout << "O";
else if (s[i]=='i'||s[i]=='I') cout << "I";
else if (s[i]=='u'||s[i]=='U') cout << "U";
else
{
std::transform(s.begin(), s.end(),s.begin(),::tolower);
cout << s[i];
}
}
cout << endl;
}
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCiNkZWZpbmUgaW50IGxvbmcgbG9uZwpjb25zdCBpbnQgTU9EID0gMWU5ICsgNzsKY29uc3QgaW50IE4gPSAyZTUgKyA1OwoKc2lnbmVkIG1haW4oKQp7CiAgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbygwKTsKICBjaW4udGllKDApOwogIGNvdXQudGllKDApOwogIGludCBxOwogIGNpbiA+PiBxOwogIHdoaWxlKHEtLSkKICB7CiAgCXN0cmluZyBzOwogIAljaW4gPj4gczsKICAJZm9yIChpbnQgaSA9IDA7aTw9cy5zaXplKCktMTtpKyspCiAgCXsKICAJCWlmIChzW2ldPT0nYSd8fHNbaV09PSdBJykgY291dCA8PCAiQSI7CgkJICBlbHNlIGlmIChzW2ldPT0nZSd8fHNbaV09PSdFJykgY291dCA8PCAiRSI7CgkJICBlbHNlIGlmIChzW2ldPT0nbyd8fHNbaV09PSdPJykgY291dCA8PCAiTyI7CgkJICBlbHNlIGlmIChzW2ldPT0naSd8fHNbaV09PSdJJykgY291dCA8PCAiSSI7CgkJICBlbHNlIGlmIChzW2ldPT0ndSd8fHNbaV09PSdVJykgY291dCA8PCAiVSI7CgkJZWxzZSAKCQl7CgkJCXN0ZDo6dHJhbnNmb3JtKHMuYmVnaW4oKSwgcy5lbmQoKSxzLmJlZ2luKCksOjp0b2xvd2VyKTsKCQkJY291dCA8PCBzW2ldOwoJCX0KCX0KCWNvdXQgPDwgZW5kbDsKICB9CiAgcmV0dXJuIDA7Cn0K