Modified IO for contest environment