#include using namespace std; int main(){ string s; cin >> s; int n=s.size(); if(s[n-1]=='i' && s[n-2]=='a'){s[n-1]='I';s[n-2]='A';} else s+="-AI"; cout << s << endl; return 0; }