Nikolay Domashenko's submission of Infernos | CodeChef