Nikolay Domashenko's submission of Magic Set | CodeChef