#include using namespace std; using ll=long long; ll mod=1000000007; ll INF=1LL<<60; int main() { string S; cin >> S; int N=S.size(); if(S.substr(N-2,2)=="ai"){ S[N-2]='A'; S[N-1]='I'; } else{ S+="-AI"; } cout << S << endl; }