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