S=input () if S[len(S)-1]=="i" and S[len(S)-2]=="a": S[len(S)-1]=="I" and S[len(S)-2]=="A" else: S+="-AI" print (S)