S = str(input().rstrip()) c = S.find("ai",-2) if c != -1: print(S[:-2] + "AI") else: print(S + "-AI")