Nikolay Domashenko's submission of Valid Pair | CodeChef