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