Bulbville is a small town. However, its main square resembles a scene from Las Vegas. It is full of colorful blinking pipes and panels advertising various local companies.
Nevertheless, a particular influential family residing at the main square has started to complain that a certain advertising panel shines into the windows of their residence.
Therefore, they demand that the panel be switched off during the night.
The panel is a square consisting of N rows of bulbs with N bulbs in each row. However, it has only 2N switches - one for each row and one for each column. The switch for a given row (or a column) turns off all the bulbs in a given row (or a column) which are on and turns on all the bulbs which are off. It might not be possible to turn off all the bulbs of the panel. Your task is to determine a configuration of the panel with the least number of shining bulbs that can be achieved using the switches.
4 1 0 1 1 1 0 1 0 1 1 1 0 0 1 0 0
3 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0