Nikolay Domashenko's submission of Six Friends | CodeChef