David's submission of Dilemma | CodeChef