Rows with minimal elements#9563

Rows with minimal elements

1 second
128 megabytes
Very easy

A two-dimensional array of size n \times m is given. Find all rows that contain the minimum element of the array.

Input

The first line contains two integers, and m~(1 \le n, m \le 100) — the number of rows and columns, respectively.

The next lines each contain integers representing the elements of the array. The absolute value of each element does not exceed .

Rows and columns are numbered starting from .

Output

Print, in increasing order, the numbers of all rows that contain the minimum element of the array.

Examples

Example 1

Loading
Loading

Example 3

Loading
Loading