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