#include #include #include #include using namespace std; int main(){ string s; cin >> s; if(s.substr(s.size() - 2) == "ai"){ s[s.size() - 2] = 'A'; s[s.size() - 1] = 'I'; cout << s << endl; }else{ cout << s << + "-AI" << endl; } return 0; }