def _main(): maker_id = raw_input() id_len = len(maker_id) if not ((2 <= id_len) and (id_len <= 10)): msg = "Input ID is valid" raise ValueError(msg) id_tail = maker_id[-2:] id_head = maker_id[:-2] ai_name = id_head + "AI" if id_tail == "ai" else maker_id + "-AI" print(ai_name) if __name__ == "__main__": _main()