Ivan's submission of Matrix | CodeChef