Solving problem https://code.google.com/codejam/contest/351101/dashboard