CodeLab Academy 📞 9936 6696
← List Python · Level 8: Nested loops Code · 80 points ← #741 #743 →

#742. Matrix: Position of the largest element (row column, from 1)

You are given a matrix of integers. **Position of the largest element (row column, from 1)**. ### Input The first line has n m (the number of rows and columns), each of the next n lines has m integers. ### Output The answer.

Examples

Input
3 2
-4 -4
9 -9
-5 3
Output
2 1
Input
5 3
4 3 4
-9 7 0
-8 -1 -1
0 7 1
9 -4 7
Output
5 1

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!