#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; } cout << S << "-AI" << endl; }