Mr. Zero has a matrix **Z** consisting of **m** rows and **n** columns. The rows are numbered from **1** to **m**, columns are numbered from **1** to **n**. Element at row **i** (**1 ≤ i ≤ m**) and column **j (1 ≤ j ≤ n)** is denoted as **Z**ij. All elements of **Z** are either **0** or **1**.

This is a companion discussion topic for the original entry at https://toph.co/p/mr-zero