Nikolay Domashenko's submission of Slow Solution | CodeChef