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

#739. Matrix: Smallest value of each column

You are given a matrix of integers. **Smallest value 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
4 5
-7 -6 0 7 4
8 3 -4 5 -7
6 1 8 -6 3
1 -3 -6 4 -1
Output
-7 -6 -6 -6 -7
Input
3 5
-3 8 -6 0 1
7 -3 -6 0 -8
6 2 6 5 -8
Output
-3 -3 -6 0 -8

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