example1 1 4 line 1 0 0 0 1 line 2 0 1 1 1 line 3 1 1 1 0 line 4 1 0 0 0