#include #include #include #include #include #include #include #define FOR(i,n) for(int (i)=0;(i)<(int)(n);++(i)) #define FORR(i,l,n) for(int (i)=l;(i)<(int)(n);++(i)) int main() { 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 += "-AI"; } std::cout << S << std::endl; return 0; }