#include<bits/stdc++.h>
using namespace std;
int main()
{
string a;
cin>>a;
while(a[a.length()-1]!='.')
{
if(a[0]=='a'||a[0]=='e'||a[0]=='i'||a[0]=='o'||a[0]=='u'||a[0]=='A'||a[0]=='E'||a[0]=='I'||a[0]=='O'||a[0]=='U'){
a+="ay";
for(long long i=0;i<a.length();i++){
cout<<a[i];
}
}
else{
for(long long i=1;i<a.length();i++){
cout<<a[i];
}
cout<<a[0]<<"ay";
}
cin>>a;
cout<<" ";
}
if(a[a.length()-1]=='.'){
if(a[0]=='a'||a[0]=='e'||a[0]=='i'||a[0]=='o'||a[0]=='u'||a[0]=='A'||a[0]=='E'||a[0]=='I'||a[0]=='O'||a[0]=='U'){
for(long long i=0;i<a.length()-1;i++){
cout<<a[i];
}
cout<<"ay.";
}
else{
for(long long i=1;i<a.length()-1;i++){
cout<<a[i];
}
cout<<a[0]<<"ay.";
}
}
return 0;
}
样例过了 交就WA