Finally finished 2008 round 1B, problem C! Using Python! I guess Python
is okay after all?