naveen's submission of Chef and Balls | CodeChef