ID = input() last_name = ID[-2:] if last_name == "ai": changed_ID = ID.replace("ai", "AI") else: changed_ID = ID + "-AI" print(changed_ID)