CodeLab Academy 📞 9936 6696
← List Python · Level 7: Lists Code · 70 points ← #640 #642 →

#641. Bigger than the one before

How many elements are strictly greater than the element before them? ### Input The first line has n, the second line has n integers separated by spaces. ### Output A number.

Examples

Input
4
4 8 14 6
Output
2
Input
7
18 0 9 11 10 19 8
Output
3

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