#include #include #include #include using namespace std; int main(){ string S; cin >> S; if(S[S.size()-2] == 'a' && S[S.size() - 1] == 'i'){ S[S.size()-2] = 'A'; S[S.size() - 1] = 'I'; }else{ S = S + "-AI"; } cout << S << endl; return 0; }