Nikolay Domashenko's submission of Stone | CodeChef