#include #include #include #include #include #include #include #include int main() { std::string s; std::cin >> s; size_t sz = s.size(); if(s[sz - 2] == 'a' && s[sz - 1] == 'i'){ s[sz - 2] = 'A'; s[sz - 1] = 'I'; std::cout << s; } else { std::cout << s << "-AI"; } std::cout << std::endl; return 0; }