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

#750. Matrix: elements greater than 0

How many elements of the matrix are greater than 0? ### Input The first line has n m (the number of rows and columns), each of the next n lines has m integers. ### Output A number.

Examples

Input
3 3
3 14 -20
4 -13 0
-7 -13 -20
Output
3
Input
3 4
-17 20 -15 14
-15 18 -20 13
10 9 -3 3
Output
7

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