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

#776. Matrix: elements greater than 5

How many elements of the matrix are greater than 5? ### 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 4
18 1 -12 -18
14 3 3 19
9 -1 -5 2
Output
4
Input
2 3
-18 -1 1
0 -3 4
Output
0

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