Information about the number of residents in each of the M apartments of each floor of a 12-storey building is stored in a two-dimensional array (in the zero line - information about the apartment on the first floor, in the first - on the second, etc.). Determine on which floor the least number of people live. Print this number and the numbers of all such floors.
Input: number M is given in the first line (0<M<=25)
Then there are 12 lines of M numbers each (an integer not exceeding 10)
Output:
Examples
# |
Input |
Output |
1 |
4
1 9 7 9
0 9 5 2
7 3 9 1
9 4 6 1
1 4 1 2
1 7 4 7
1 4 1 2
6 8 4 4
6 3 2 0
1 4 1 2
7 7 9 2
3 1 5 0 |
8
5 7 10
|