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

#745. Matrix: Number of the row with the largest sum (from 1, the first one)

You are given a matrix of integers. **Number of the row with the largest sum (from 1, the first one)**. ### 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
5 2
-3 2
-7 3
-4 -3
-4 0
1 4
Output
5
Input
3 4
-6 4 -4 -9
6 3 8 0
-5 0 -5 7
Output
2

💡 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!