Nikolay Domashenko's submission of Dilemma | CodeChef