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