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