Nikolay Domashenko's submission of Yet another SOD problem | CodeChef