Nikolay Domashenko's submission of Ups and Downs | CodeChef