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