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

#746. Matrix: Number of the column with the smallest sum (from 1, the first one)

You are given a matrix of integers. **Number of the column with the smallest 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
4 5
-2 7 4 -1 2
-6 2 -4 -7 -1
-3 -6 -5 2 1
8 -3 2 -1 2
Output
4
Input
4 3
2 7 -5
0 5 -7
-7 1 -5
-1 -6 6
Output
3

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