//No.536 人工知能 #include using namespace std; int main() { int iLen; char S[ 20 ]; cin >> S; iLen = strlen( S ); if( S[ iLen - 2 ] == 'a' && S[ iLen - 1 ] == 'i' ) { S[ iLen - 2 ] = '\0'; cout << S << "AI" << endl; } else cout << S << "-AI" << endl; return 0; }