Nikolay Domashenko's submission of Three Boxes | CodeChef