\problemname{Matrix Fraud}

For the purposes of this problem:
A matrix is a \emph{binary matrix} if all its entries are $0$ or $1$.
A matrix is a \emph{banded binary matrix} if its rows and columns satisfy the following properties:
\begin{enumerate}
\item Every row has at least one $1$.
\item Every column has at least one $1$.
\item All $1$s in each row are contiguous.
\item For row $i$, if $s_i$ is the leftmost column that has a $1$ entry and $t_i$ is the rightmost column that has a $1$ entry,
then it must satisfy $s_i \ge s_{i-1}$ and $t_i \ge t_{i-1}$ for $i > 1$.
\end{enumerate}

Detecting banded binary matrices is an important method used in various fields like biology, paleontology, and linguistics to unearth clusters in data sets. Unfortunately, a group called the Immoral Cartel of Pure Cozeners (ICPC) has decided to do the unthinkable: manipulate data! The ICPC wishes to present their groundbreaking scientific results, but the scientific community will not take their results seriously because their matrices may not be banded. To have publishable results, they want to toggle some cells such that their data is a banded binary matrix.

The ICPC gives you its raw data, represented as a binary matrix. They want to toggle some cells (meaning, change a $0$ to a $1$ or a $1$ to a $0$) so that the resulting matrix is a banded binary matrix, as defined above. What is the fewest number of toggles needed to turn the given matrix into a banded binary matrix?

\section*{Input}
The first line of input contains two integers $r$ and $c$ ($1 \leq r \times c \leq 2 \cdot 10^5$), which are the dimensions of the matrix.
The matrix has $r$ rows and $c$ columns. 

Each of the next $r$ lines contains a string of binary digits of length $c$. This is the matrix.

\section*{Output}
Output a single integer, which is the minimum number of entries in the matrix to toggle to make the input matrix a binary banded matrix.
