Nikolay Domashenko's submission of Beat the Average | CodeChef