Атанас Димитров's submission of Safe Partition | CodeChef