#include //cin, cout #include //vector #include //sort,min,max,count #include //string,getline, to_string #include //abs(int) #include //swap, pair #include //deque #include //INT_MAX #include //bitset #include //sqrt, ceil. M_PI, pow, sin #include //fixed #include //setprecision #include //stringstream using namespace std; int main() { string S; cin >> S; if (S[S.length() - 2] == 'a' && S[S.length() - 1] == 'i') { S[S.length() - 2] ^= 0x20; S[S.length() - 1] ^= 0x20; } else { S = S + "-AI"; } cout << S << endl; return 0; }