#include #include int main() { std::string S; std::cin >> S; if ((int)S.find("ai", S.size() - 2) != -1) S.replace(S.size() - 2, 2, "AI"); else S += "-AI"; std::cout << S << std::endl; return 0; }