Some improvements on id:virus. Now answer is wrong on ninth test case.