S = input() if 'ai' == S[-2:]: print(S[:-2] + "AI") else: print(S + "-AI")