Nikolay Domashenko's submission of Medel | CodeChef