Nikolay Domashenko's submission of The Three Topics | CodeChef