mohit's submission of Doof on Cartesian | CodeChef