#include #include #include #include int main(void) { //std::ifstream inf("Text.txt"); std::cin.rdbuf(inf.rdbuf()); std::string S; std::cin >> S; if (S[S.length() - 2] == 'a' && S[S.length() - 1] == 'i') { S[S.length() - 2] = 'A'; S[S.length() - 1] = 'I'; } else { S = S + "-AI"; } std::cout << S << std::endl; return 0; }