Resul Hangeldiyev's submission of Balanced Team | CodeChef