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