#define _GLIBCXX_DEBUG #include using namespace std; int main() { string S; cin >> S; int s = (int)S.size(); if(S.substr(s-2, s) == "ai"){ cout << S.substr(0, s-2) + "AI" << endl; }else{ cout << S << "-AI" << endl; } }