LearnPy Hub
← Arena
EasyRating 900

Highest Cell

Print the largest number in the grid and its row and column (counting from 1). If it appears more than once, use the first one in reading order.

Input

r and c, then r rows.

Output

Value, row, column.

Sample 1

Input
2 3
1 9 3
9 2 1
Output
9 1 2

Sample 2

Input
1 1
-5
Output
-5 1 1
solution.py
Output appears here
Highest Cell · Python Arena problem · LearnPy Hub