Ashish Patel's submission of Doof on Cartesian | CodeChef