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

#752. Rows with a sum greater than 0

How many rows have a sum of elements 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
5 3
0 -4 15
-2 15 11
-10 -7 9
-9 0 3
-1 4 14
Output
3
Input
2 4
5 13 15 -7
4 -2 -1 4
Output
2

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