The matrix is given. It contains rows and columns. The saddle point of the matrix is an element that is minimum in its row and maximum in its column.
Find the number of saddle points in a given matrix.
The first line contains two integers and . Then given rows with numbers in each. The -th number of the -th line equals . All do not exceed by absolute value.
Print the number of saddle points.