The binary matrix is given. Find its square modulo .
The first line contains the size of the matrix (1 \leq n \leq 4000). Each of the next lines contains symbols, each equal to or .
Print one number — the amount of ones in the squared matrix.
Example 1