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