Nikolay Domashenko's submission of Good Pairs | CodeChef