David's submission of Doofish Matrix | CodeChef