* Solved problem C from Q Round 2010 Africa jam