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