codeforces round 183 - task C is not finished
clean up topcoder template