Nikolay Domashenko's submission of Best of Two | CodeChef