* Made solution for 2008 codejam Round 1 Problem C