In a NxM matrix, replace with the value -1 all the elements of those rows that contain the maximum element.

Input
The first line contains two numbers N and M (\(0 < N,M <= 10\)). Next come N lines of M numbers each - matrix elements (each element is less than 100).

Imprint
Output the modified matrix. For each element in the output, allocate exactly 3 characters (familiar spaces). Each number must be followed by a space character.