#include using namespace std; using ll = long long; using P = pair; #define rep(i,n) for(int i=0;i> s; if (s[s.size()-2]=='a' && s[s.size()-1]=='i'){ rep(i,s.size()){ if (i>=s.size()-2){ cout << "AI" << endl; break; } else cout << s[i]; } } else { cout << s << "-AI" << endl; } return 0; }