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

#734. Matrix: Sum of each column

You are given a matrix of integers. **Sum of each column**. ### 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
2 2
-1 -1
-7 4
Output
-8 3
Input
4 2
9 -2
-1 -1
-2 8
-5 -9
Output
1 -4

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