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

#673. Records

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

Examples

Input
12
18 44 24 9 49 12 1 35 26 32 39 1
Output
3
Input
5
8 23 37 23 50
Output
4

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