ejudge2 Task1 implemented